mir3c/squashfs-root/etc/hotplug.d/iface/90-tcp_proxy

16 lines
481 B
Plaintext
Raw Normal View History

2018-05-25 08:49:31 +00:00
#!/bin/sh
if [ "$ACTION" = "ifup" -a "$INTERFACE" = "lan" ]; then
# for http status
if [ -f /etc/init.d/http_status_stat ]; then
/etc/init.d/http_status_stat is_enabled
if [ $? -eq 1 ]; then
logger -t "hotplug.d" "http_stat_proxy refresh_lan"
/etc/init.d/http_status_stat refresh_lan
fi
fi
# for http url
[ -f /etc/init.d/http_url_proxy ] && [ -d /sys/module/http_url ] && /etc/init.d/http_url_proxy restart
fi