From 0fc3e3457cd690629da8def9b454836e9f97b43c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 16 Oct 2006 23:01:17 +0000 Subject: [PATCH] fix default interface for ez-ipupdate (#835) SVN-Revision: 5170 --- net/ez-ipupdate/files/ez-ipupdate.hotplug | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/ez-ipupdate/files/ez-ipupdate.hotplug b/net/ez-ipupdate/files/ez-ipupdate.hotplug index c305458b1..352c40448 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 } & } -- 2.30.2