2023-08-07 00:30:11 +00:00
|
|
|
#!/bin/sh
|
2022-05-25 17:59:35 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Copyright (C) 2021-present kkoshelev (https://github.com/kkoshelev)
|
|
|
|
|
2023-08-07 00:30:11 +00:00
|
|
|
# Minimal OS variable loading for performance
|
2023-09-04 10:46:11 +00:00
|
|
|
. /etc/profile.d/001-functions
|
2022-05-25 17:59:35 +00:00
|
|
|
|
2023-07-23 13:47:19 +00:00
|
|
|
(
|
|
|
|
if [ "$(get_setting wireguard.up)" == "1" ]
|
|
|
|
then
|
|
|
|
tocon "Enabling wireguard..."
|
|
|
|
nohup wg-quick up /storage/.config/wireguard/wg0.conf &
|
|
|
|
fi
|
|
|
|
) &
|