1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Small changes in mlvpn init

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-09-18 22:47:10 +02:00
parent bb408f2542
commit 149c30129d

View file

@ -49,7 +49,7 @@ start_service() {
[ "${enable}" = "1" ] || return 1 [ "${enable}" = "1" ] || return 1
if [ "$(uci -q get network.omrvpn)" != "" ]; then if [ "$(uci -q get network.omrvpn)" != "${interface_name}" ]; then
uci -q set network.omrvpn.ifname=${interface_name} uci -q set network.omrvpn.ifname=${interface_name}
uci -q commit uci -q commit
fi fi
@ -74,8 +74,8 @@ start_service() {
procd_open_instance procd_open_instance
procd_set_param command /usr/sbin/mlvpn --config "/tmp/etc/${interface_name}.conf" --user nobody procd_set_param command /usr/sbin/mlvpn --config "/tmp/etc/${interface_name}.conf" --user nobody
procd_set_param file "/tmp/etc/${interface_name}.conf" procd_set_param file "/tmp/etc/${interface_name}.conf"
procd_set_param reload_signal SIGHUP #procd_set_param reload_signal SIGHUP
procd_set_param respawn procd_set_param respawn 0 30 5
procd_close_instance procd_close_instance
} }