immortalwrt/package/ntlf9t/scutclient/files/scutclient.hotplug

9 lines
293 B
Plaintext
Raw Normal View History

2019-07-02 18:06:49 +08:00
. /lib/functions.sh
. /lib/functions/network.sh
network_find_wan wan_net_name
[ "$ACTION" = "ifup" ] && \
[ "$(uci get scutclient.@option[-1].enable)" = "1" ] && \
[ "$wan_net_name" = "$INTERFACE" ] || exit 0
pgrep -x /usr/bin/scutclient > /dev/null && exit 0
2020-04-21 12:01:39 +08:00
/etc/init.d/scutclient restart