switch: the hardware must be up while configuring Since the removal of the interface...
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 13 Mar 2012 21:15:41 +0000 (21:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 13 Mar 2012 21:15:41 +0000 (21:15 +0000)
SVN-Revision: 30937

package/switch/Makefile
package/switch/files/switch.sh

index 364416de793f796d1773bef3b037d1a5bd0db0cd..2b036b07dc1f17ddf5c055c1e6c4e319aa51e85e 100644 (file)
@@ -1,5 +1,5 @@
 # 
-# Copyright (C) 2006-2011 OpenWrt.org
+# Copyright (C) 2006-2012 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=kmod-switch
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 include $(INCLUDE_DIR)/package.mk
 
index 6517ca9853ce449e5e294b19937de6b433f3401e..2563d410e522ba0eca83804480d89313ab147ff9 100644 (file)
@@ -11,6 +11,7 @@ setup_switch_hw() {
 
        local proc="/proc/switch/$dev"
        [ -d "$proc" ] && {
+               ifconfig "$dev" up
                echo "$reset"  > "$proc/reset"
                echo "$evlan"  > "$proc/enable_vlan"
                [ -f "$proc/enable" ] && echo "$enable" > "$proc/enable"