don't try to change interface settings if <group>_proto is unset or 'none' (#504)
authorFelix Fietkau <[email protected]>
Fri, 9 Jun 2006 02:17:20 +0000 (02:17 +0000)
committerFelix Fietkau <[email protected]>
Fri, 9 Jun 2006 02:17:20 +0000 (02:17 +0000)
SVN-Revision: 3924

openwrt/package/base-files/default/sbin/ifup

index 686ef6496299b8b0f09727667dd9ae4966a9b31c..8bb56a5c5c29985076993b4a66d2233f868c024d 100755 (executable)
@@ -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)