2006-04-01 20:23:17 +00:00
|
|
|
. /etc/functions.sh
|
|
|
|
NAME=ez-ipupdate
|
|
|
|
CONFIG=/etc/$NAME.conf
|
|
|
|
COMMAND=/usr/sbin/$NAME
|
2006-02-08 14:08:21 +00:00
|
|
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
2006-04-01 20:23:17 +00:00
|
|
|
[ -x $COMMAND ] && [ -r $CONFIG ] && {
|
|
|
|
IFNAME=$(nvram get ${INTERFACE}_ifname)
|
|
|
|
$COMMAND -c $CONFIG -i $IFNAME 2>&1 | logger -t $NAME
|
|
|
|
} &
|
2006-02-08 14:08:21 +00:00
|
|
|
}
|