Changeset 30937


Ignore:
Timestamp:
2012-03-13T22:15:41+01:00 (6 years ago)
Author:
jow
Message:

[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.

Location:
trunk/package/switch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/switch/Makefile

    r27904 r30937  
    11#  
    2 # Copyright (C) 2006-2011 OpenWrt.org 
     2# Copyright (C) 2006-2012 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010 
    1111PKG_NAME:=kmod-switch 
    12 PKG_RELEASE:=4 
     12PKG_RELEASE:=5 
    1313 
    1414include $(INCLUDE_DIR)/package.mk 
  • trunk/package/switch/files/switch.sh

    r20717 r30937  
    1212        local proc="/proc/switch/$dev" 
    1313        [ -d "$proc" ] && { 
     14                ifconfig "$dev" up 
    1415                echo "$reset"  > "$proc/reset" 
    1516                echo "$evlan"  > "$proc/enable_vlan" 
Note: See TracChangeset for help on using the changeset viewer.