mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 17:59:21 +02:00
[package] switch: the hardware must be up while configuring
Since the removal of the interface coldplug hack the timing changed in such a way that eth0 is not up during switch setup, leading to an inaccesible device. Bring up the switch interface before configuring it to mitigate the problem. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30937 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0182feb5e7
commit
9bbe7731c6
@ -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.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=kmod-switch
|
PKG_NAME:=kmod-switch
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ setup_switch_hw() {
|
|||||||
|
|
||||||
local proc="/proc/switch/$dev"
|
local proc="/proc/switch/$dev"
|
||||||
[ -d "$proc" ] && {
|
[ -d "$proc" ] && {
|
||||||
|
ifconfig "$dev" up
|
||||||
echo "$reset" > "$proc/reset"
|
echo "$reset" > "$proc/reset"
|
||||||
echo "$evlan" > "$proc/enable_vlan"
|
echo "$evlan" > "$proc/enable_vlan"
|
||||||
[ -f "$proc/enable" ] && echo "$enable" > "$proc/enable"
|
[ -f "$proc/enable" ] && echo "$enable" > "$proc/enable"
|
||||||
|
Loading…
Reference in New Issue
Block a user