op-packages/luci-app-softethervpn/root/etc/uci-defaults/luci-softethervpn
github-actions[bot] 32600acc60 🌴 Sync 2026-03-05 23:51:42
2026-03-05 23:51:42 +08:00

19 lines
582 B
Bash
Executable File

#!/bin/sh
uci -q batch <<-EOF >/dev/null
delete firewall.softethervpn
set firewall.softethervpn=include
set firewall.softethervpn.type=script
set firewall.softethervpn.path=/usr/share/softethervpn/firewall.include
set firewall.softethervpn.reload=1
EOF
/etc/init.d/softethervpnbridge disable && /etc/init.d/softethervpnbridge stop
/etc/init.d/softethervpnclient disable && /etc/init.d/softethervpnclient stop
/etc/init.d/softethervpnserver disable && /etc/init.d/softethervpnserver stop
chmod a+x /usr/share/softethervpn/* >/dev/null 2>&1
rm -f /tmp/luci-indexcache
exit 0