port wan_device changes from whiterussian to kamikaze
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / default / sbin / ifup
index 67e01a3e90ddf81bdba8bebb7b8843ebb57f00d8..8ae64166854109bf62e7c8f0e2bf87822b2b1741 100755 (executable)
@@ -23,7 +23,7 @@ case "$if_proto" in
        none|"") exit 0;;
 esac
 
-[ "${if%%[0-9]*}" = "ppp" ] && if="$(nvram get ${if_proto}_ifname)"
+[ "${if%%[0-9]*}" = "ppp" ] && if="$(nvram get ${type}_device)"
 
 if [ "${if%%[0-9]}" = "br" ]; then
        for sif in $(nvram get ${type}_ifnames); do