port changes in whiterussian ([3341]) to trunk.
[openwrt/svn-archive/archive.git] / openwrt / package / ez-ipupdate / files / ez-ipupdate.hotplug
1 . /etc/functions.sh
2 NAME=ez-ipupdate
3 CONFIG=/etc/$NAME.conf
4 COMMAND=/usr/sbin/$NAME
5 [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
6 [ -x $COMMAND ] && [ -r $CONFIG ] && {
7 IFNAME=$(nvram get ${INTERFACE}_ifname)
8 $COMMAND -c $CONFIG -i $IFNAME 2>&1 | logger -t $NAME
9 } &
10 }