ee27e41337
SVN-Revision: 3588
10 lines
306 B
Text
10 lines
306 B
Text
NAME=ez-ipupdate
|
|
CONFIG=/etc/$NAME.conf
|
|
COMMAND=/usr/sbin/$NAME
|
|
|
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
|
[ -x $COMMAND ] && [ -r $CONFIG ] && {
|
|
eval "ifname=\"\${${INTERFACE}_ifname}\""
|
|
$COMMAND -c $CONFIG -i $ifname 2>&1 | logger -t $NAME
|
|
} &
|
|
}
|