mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-18 22:43:00 +08:00
22 lines
588 B
Bash
Executable File
22 lines
588 B
Bash
Executable File
#!/bin/sh
|
|
|
|
uci -q batch <<-EOF >/dev/null
|
|
delete firewall.luci_app_pptp_server
|
|
set firewall.luci_app_pptp_server=include
|
|
set firewall.luci_app_pptp_server.type=script
|
|
set firewall.luci_app_pptp_server.path=/var/etc/pptpd.include
|
|
EOF
|
|
|
|
if [ -x "/sbin/fw3" ] && [ ! -L "/sbin/fw3" ]; then
|
|
uci -q set firewall.luci_app_pptp_server.reload='1'
|
|
else
|
|
uci -q delete firewall.luci_app_pptp_server.reload
|
|
uci -q delete firewall.luci_app_pptp_server.fw4_compatible
|
|
fi
|
|
uci commit firewall
|
|
|
|
/etc/init.d/pptpd disable 2>/dev/null
|
|
/etc/init.d/pptpd stop 2>/dev/null
|
|
rm -rf /tmp/luci-*cache
|
|
exit 0
|