Changeset 19922


Ignore:
Timestamp:
2010-03-01T02:12:57+01:00 (7 years ago)
Author:
nico
Message:

switch: suppress boot error message on 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/switch/files/switch.sh

    r19909 r19922  
    11#!/bin/sh 
    2 # Copyright (C) 2006-2009 OpenWrt.org 
     2# Copyright (C) 2006-2010 OpenWrt.org 
    33 
    44setup_switch_hw() { 
     
    1414                echo "$reset"  > "$proc/reset" 
    1515                echo "$evlan"  > "$proc/enable_vlan" 
    16                 echo "$enable" > "$proc/enable" 
     16                [ -f "$proc/enable" ] && echo "$enable" > "$proc/enable" 
    1717        } 
    1818} 
Note: See TracChangeset for help on using the changeset viewer.