packages/net/ez-ipupdate/files/ez-ipupdate.hotplug
nbd dc7238bdf2 fix default interface for ez-ipupdate (#835)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5170 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-16 23:01:17 +00:00

15 lines
359 B
Plaintext

NAME=ez-ipupdate
CONFIG=/etc/$NAME.conf
COMMAND=/usr/sbin/$NAME
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
[ -x $COMMAND ] && [ -r $CONFIG ] && {
include /lib/network
scan_interfaces
config_get ifname wan ifname
[ -n "$ifname" ] && \
$COMMAND -c $CONFIG -i $ifname 2>&1 | logger -t $NAME
} &
}