mir3c/squashfs-root/etc/hotplug.d/iface/90-tcp_proxy
2018-05-25 14:19:31 +05:30

16 lines
481 B
Bash
Executable File

#!/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