PKG_NAME:=vpnbypass
PKG_VERSION:=1.3.1
-PKG_RELEASE:=4
+PKG_RELEASE:=5
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Stan Grishin <stangri@melmac.net>
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
/etc/init.d/vpnbypass enable
-
- while uci -q del ucitrack.@vpnbypass[-1]; do :; done
-
- uci -q batch <<-EOF >/dev/null
- add ucitrack vpnbypass
- set ucitrack.@vpnbypass[0].init='vpnbypass'
- del_list ucitrack.@firewall[0].affects='vpnbypass'
- add_list ucitrack.@firewall[0].affects='vpnbypass'
- commit ucitrack
- EOF
fi
exit 0
endef
#!/bin/sh
# check if we are on real system
if [ -z "$${IPKG_INSTROOT}" ]; then
- while uci -q delete ucitrack.@vpnbypass[-1]; do :; done
- uci -q del_list ucitrack.@firewall[0].affects='vpnbypass'
echo "Stopping service and removing rc.d symlink for vpnbypass"
/etc/init.d/vpnbypass stop || true
/etc/init.d/vpnbypass disable || true
service_triggers() {
local ifaces n
config_load network; config_foreach service_triggers_load_interface 'interface';
- procd_add_reload_trigger 'firewall'
- procd_add_reload_trigger 'openvpn'
+ procd_add_reload_trigger 'firewall' 'openvpn' 'vpnbypass'
procd_open_trigger
for n in $ifaces; do procd_add_reload_interface_trigger "$n"; procd_add_interface_trigger "interface.*" "$n" /etc/init.d/vpnbypass reload; done;
output "$serviceName monitoring interfaces: $ifaces $_OK_\\n"