e41e87b51f
* Update the init script and config file to use multiple updates * Cleanup the Makefile git-svn-id: svn://svn.openwrt.org/openwrt/packages@8072 3c298f89-4303-0410-b956-a3cf2f4a3e73
16 lines
433 B
Plaintext
16 lines
433 B
Plaintext
NAME=updatedd
|
|
CONFIG=/etc/config/$NAME
|
|
COMMAND=/usr/bin/$NAME
|
|
|
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
|
[ -x $COMMAND ] && [ -r $CONFIG ] && {
|
|
include /lib/network
|
|
scan_interfaces
|
|
|
|
config_get ifname wan ifname
|
|
[ -n "$ifname" ] && {
|
|
/etc/init.d/updatedd restart
|
|
}
|
|
} &
|
|
}
|