From f5d5cedeb631d954784efefedf72d208e199648e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 3 Nov 2006 09:22:03 +0000 Subject: [PATCH] ignore the failed if_valid check for ppp protocols except for pppoe (fixes ifup.wwan) SVN-Revision: 5408 --- openwrt/package/base-files/default/sbin/ifup | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openwrt/package/base-files/default/sbin/ifup b/openwrt/package/base-files/default/sbin/ifup index 8bb56a5c5c..a4df8339db 100755 --- a/openwrt/package/base-files/default/sbin/ifup +++ b/openwrt/package/base-files/default/sbin/ifup @@ -9,9 +9,15 @@ case "$if_proto" in none|"")exit;; esac if=$(nvram get ${type}_ifname) -[ "${if%%[0-9]}" = "ppp" ] && if=$(nvram get ${type}_device) +if [ "${if%%[0-9]}" = "ppp" ]; then + if=$(nvram get ${type}_device) + if_valid "$if" || { + [ "$if_proto" = "pppoe" ] && exit + } +else + if_valid "$if" || exit +fi -if_valid $if || [ "$if_proto" = "pptp" ] || exit mac=$(nvram get ${type}_hwaddr) $DEBUG ifconfig $if down 2>&- -- 2.30.2