updatedd:
[openwrt/svn-archive/archive.git] / net / updatedd / files / updatedd.hotplug
1 NAME=updatedd
2 CONFIG=/etc/config/$NAME
3 COMMAND=/usr/bin/$NAME
4
5 [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
6 [ -x $COMMAND ] && [ -r $CONFIG ] && {
7 include /lib/network
8 scan_interfaces
9
10 config_get ifname wan ifname
11 [ -n "$ifname" ] && {
12 /etc/init.d/updatedd restart
13 }
14 } &
15 }