2006-07-26 03:03:45 +00:00
|
|
|
NAME=ez-ipupdate
|
|
|
|
CONFIG=/etc/$NAME.conf
|
|
|
|
COMMAND=/usr/sbin/$NAME
|
|
|
|
|
|
|
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
|
|
|
[ -x $COMMAND ] && [ -r $CONFIG ] && {
|
2006-10-16 23:01:17 +00:00
|
|
|
include /lib/network
|
|
|
|
scan_interfaces
|
|
|
|
|
|
|
|
config_get ifname wan ifname
|
|
|
|
[ -n "$ifname" ] && \
|
|
|
|
$COMMAND -c $CONFIG -i $ifname 2>&1 | logger -t $NAME
|
2006-07-26 03:03:45 +00:00
|
|
|
} &
|
|
|
|
}
|