2007-02-28 17:58:09 +00:00
|
|
|
NAME=updatedd
|
2007-03-17 03:32:12 +00:00
|
|
|
CONFIG=/etc/config/$NAME
|
|
|
|
COMMAND=/usr/bin/$NAME
|
2007-02-28 17:58:09 +00:00
|
|
|
|
|
|
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
|
|
|
[ -x $COMMAND ] && [ -r $CONFIG ] && {
|
|
|
|
include /lib/network
|
|
|
|
scan_interfaces
|
|
|
|
|
|
|
|
config_get ifname wan ifname
|
|
|
|
[ -n "$ifname" ] && {
|
|
|
|
/etc/init.d/ddns restart
|
|
|
|
}
|
|
|
|
} &
|
|
|
|
}
|