use <name>_device instead of <proto>_ifname
authorFelix Fietkau <nbd@openwrt.org>
Wed, 29 Mar 2006 15:24:47 +0000 (15:24 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 29 Mar 2006 15:24:47 +0000 (15:24 +0000)
SVN-Revision: 3550

openwrt/package/base-files/default/etc/functions.sh

index d9ffc722f781d884d3be01b91d307e00609c0fd0..fd0ce0e31ba10914a9dd48cb1c0ff7de10bb8418 100755 (executable)
@@ -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)