From 8008787a1bfcfbce128cf5e46d224ba921070f68 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 29 Mar 2006 15:24:47 +0000 Subject: [PATCH] use _device instead of _ifname SVN-Revision: 3550 --- openwrt/package/base-files/default/etc/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2