2006-04-01 20:23:17 +00:00
|
|
|
NAME=ez-ipupdate
|
|
|
|
CONFIG=/etc/$NAME.conf
|
|
|
|
COMMAND=/usr/sbin/$NAME
|
2006-04-05 02:09:22 +00:00
|
|
|
|
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 ] && {
|
2006-04-05 02:09:22 +00:00
|
|
|
eval "ifname=\"\${${INTERFACE}_ifname}\""
|
|
|
|
$COMMAND -c $CONFIG -i $ifname 2>&1 | logger -t $NAME
|
2006-04-01 20:23:17 +00:00
|
|
|
} &
|
2006-02-08 14:08:21 +00:00
|
|
|
}
|