dc7238bdf2
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5170 3c298f89-4303-0410-b956-a3cf2f4a3e73
15 lines
359 B
Plaintext
15 lines
359 B
Plaintext
NAME=ez-ipupdate
|
|
CONFIG=/etc/$NAME.conf
|
|
COMMAND=/usr/sbin/$NAME
|
|
|
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
|
[ -x $COMMAND ] && [ -r $CONFIG ] && {
|
|
include /lib/network
|
|
scan_interfaces
|
|
|
|
config_get ifname wan ifname
|
|
[ -n "$ifname" ] && \
|
|
$COMMAND -c $CONFIG -i $ifname 2>&1 | logger -t $NAME
|
|
} &
|
|
}
|