From: Felix Fietkau Date: Mon, 16 Oct 2006 23:01:17 +0000 (+0000) Subject: fix default interface for ez-ipupdate (#835) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6964cd5c82c620e0099c530208160416083440f0;p=openwrt%2Fsvn-archive%2Farchive.git fix default interface for ez-ipupdate (#835) SVN-Revision: 5170 --- diff --git a/net/ez-ipupdate/files/ez-ipupdate.hotplug b/net/ez-ipupdate/files/ez-ipupdate.hotplug index c305458b1a..352c404486 100644 --- a/net/ez-ipupdate/files/ez-ipupdate.hotplug +++ b/net/ez-ipupdate/files/ez-ipupdate.hotplug @@ -4,7 +4,11 @@ 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 + include /lib/network + scan_interfaces + + config_get ifname wan ifname + [ -n "$ifname" ] && \ + $COMMAND -c $CONFIG -i $ifname 2>&1 | logger -t $NAME } & }