From 78189b84e8cb5ab23716d25d21b7683076c2d4a0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 9 Jun 2006 02:17:20 +0000 Subject: [PATCH] don't try to change interface settings if _proto is unset or 'none' (#504) SVN-Revision: 3924 --- openwrt/package/base-files/default/sbin/ifup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openwrt/package/base-files/default/sbin/ifup b/openwrt/package/base-files/default/sbin/ifup index 686ef64962..8bb56a5c5c 100755 --- a/openwrt/package/base-files/default/sbin/ifup +++ b/openwrt/package/base-files/default/sbin/ifup @@ -5,6 +5,9 @@ type=$1 debug "### ifup $type ###" if_proto=$(nvram get ${type}_proto) +case "$if_proto" in + none|"")exit;; +esac if=$(nvram get ${type}_ifname) [ "${if%%[0-9]}" = "ppp" ] && if=$(nvram get ${type}_device) -- 2.30.2