openwrt_helloworld/luci-app-passwall/root/etc/hotplug.d/iface/98-passwall
2023-02-09 23:33:21 +08:00

7 lines
190 B
Bash

#!/bin/sh
[[ "$ACTION" == "ifup" && $(uci get "passwall.@global[0].enabled") == "1" ]] && {
/etc/init.d/passwall restart
echo "passwall: restart when $INTERFACE ifup" > /dev/kmsg
}