From: Felix Fietkau Date: Wed, 29 Mar 2006 15:24:47 +0000 (+0000) Subject: use _device instead of _ifname X-Git-Tag: whiterussian_rc6~294 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=8008787a1bfcfbce128cf5e46d224ba921070f68;p=openwrt%2Fsvn-archive%2Fopenwrt.git use _device instead of _ifname SVN-Revision: 3550 --- diff --git a/openwrt/package/base-files/default/etc/functions.sh b/openwrt/package/base-files/default/etc/functions.sh index d9ffc722f7..fd0ce0e31b 100755 --- a/openwrt/package/base-files/default/etc/functions.sh +++ b/openwrt/package/base-files/default/etc/functions.sh @@ -26,7 +26,7 @@ if_valid () ( do_ifup() { if_proto=$(nvram get ${2}_proto) if=$(nvram get ${2}_ifname) - [ "${if%%[0-9]}" = "ppp" ] && if=$(nvram get ${if_proto}_ifname) + [ "${if%%[0-9]}" = "ppp" ] && if=$(nvram get ${2}_device) pidfile=/var/run/${if}.pid [ -f $pidfile ] && $DEBUG kill $(cat $pidfile)