luci: auto restart when iface up
This commit is contained in:
parent
94d0a16dbf
commit
be8f6b1909
6
luci-app-passwall/root/etc/hotplug.d/iface/98-passwall
Normal file
6
luci-app-passwall/root/etc/hotplug.d/iface/98-passwall
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[[ "$ACTION" == "ifup" && $(uci get "passwall.@global[0].enabled") == "1" ]] && {
|
||||||
|
/etc/init.d/passwall restart
|
||||||
|
echo "passwall: restart when $INTERFACE ifup" > /dev/kmsg
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user