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

Update mlvpn and fix init script

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-09-10 21:02:09 +02:00
parent 5c68e7063a
commit f15e1845e8
2 changed files with 8 additions and 9 deletions

View file

@ -13,8 +13,8 @@ PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/zehome/MLVPN.git PKG_SOURCE_URL:=https://github.com/zehome/MLVPN.git
PKG_SOURCE_VERSION:=67f9f31ddd6dba9514e51b36e855a2a5e973ee93 PKG_SOURCE_VERSION:=58418fd847fe833d1e626d4b7d08f0e623756c5c
PKG_SOURCE_DATE:=2020-03-29 PKG_SOURCE_DATE:=2020-09-01
#PKG_SOURCE_URL:=https://github.com/markfoodyburton/MLVPN.git #PKG_SOURCE_URL:=https://github.com/markfoodyburton/MLVPN.git
#PKG_SOURCE_VERSION:=8f9720978b28c1954f9f229525333547283316d2 #PKG_SOURCE_VERSION:=8f9720978b28c1954f9f229525333547283316d2
#PKG_SOURCE_DATE:=2018-09-03 #PKG_SOURCE_DATE:=2018-09-03

View file

@ -40,7 +40,7 @@ interface_multipath_settings() {
EOF EOF
} }
start_service() { start() {
local enable timeout mode password reorder_buffer_size interface_name host firstport loss_tolerence local enable timeout mode password reorder_buffer_size interface_name host firstport loss_tolerence
validate_section "general" || { validate_section "general" || {
_err "validation failed" _err "validation failed"
@ -72,12 +72,11 @@ start_service() {
config_foreach interface_multipath_settings interface config_foreach interface_multipath_settings interface
chmod 0600 "/tmp/etc/${interface_name}.conf" chmod 0600 "/tmp/etc/${interface_name}.conf"
procd_open_instance service_start /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 reload_signal SIGHUP stop() {
procd_set_param respawn 0 30 5 killall mlvpn
procd_close_instance
} }
service_triggers() { service_triggers() {