1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-29 19:59:23 +02:00
openwrt-xburst/openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug
nico 263e63a5f9 port changes in whiterussian ([3341]) to trunk.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3574 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-04-01 20:23:17 +00:00

11 lines
323 B
Plaintext

. /etc/functions.sh
NAME=ez-ipupdate
CONFIG=/etc/$NAME.conf
COMMAND=/usr/sbin/$NAME
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
[ -x $COMMAND ] && [ -r $CONFIG ] && {
IFNAME=$(nvram get ${INTERFACE}_ifname)
$COMMAND -c $CONFIG -i $IFNAME 2>&1 | logger -t $NAME
} &
}