luci: auto restart when iface up

This commit is contained in:
xiaorouji 2023-02-09 15:47:53 +08:00 committed by sbwml
parent 94d0a16dbf
commit be8f6b1909

View 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
}