Changeset 30d630b in freewrt for target/linux


Ignore:
Timestamp:
Jul 17, 2006, 5:01:35 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
d40cbce
Parents:
f200c25
Message:
  • remove empty directories (ok wbx@)
  • fix failsafe_if stuff
  • optimise scripts, fix indent, while here

git-svn-id: svn://www.freewrt.org/trunk/freewrt@268 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • target/linux/package/base-files/files/brcm-2.4/etc/preinit.arch

    rf200c25 r30d630b  
    77
    88insmod diag
    9 echo 0x01 > /proc/sys/diag
     9echo 0x01 >/proc/sys/diag
    1010
    11 failsafe_if="eth0"
    1211# WAP54G, WL-HDD
    13 [  "$(nvram get boardnum)" = "2" \
    14 -o \( "$(nvram get boardnum)" = "asusX" \
    15    -a "$(nvram get et1phyaddr)" -eq 1 \) ] && failsafe_if="eth1"
     12[ "$(nvram get boardnum)" = 2 \
     13    -o \( "$(nvram get boardnum)" = asusX \
     14    -a "$(nvram get et1phyaddr)" -eq 1 \) ] && failsafe_if=eth1
    1615
    1716insmod switch-core
     
    2120# we need it on some routers that have no vlan*ports set
    2221[ -d /proc/switch/eth0 ] && {
    23         v0p="$(cat /proc/switch/eth0/vlan/0/ports)"
    24         v1p="$(cat /proc/switch/eth0/vlan/1/ports)"
    25         v2p="$(cat /proc/switch/eth0/vlan/2/ports)"
    26         echo 1 > /proc/switch/eth0/reset
     22        v0p="$(</proc/switch/eth0/vlan/0/ports)"
     23        v1p="$(</proc/switch/eth0/vlan/1/ports)"
     24        v2p="$(</proc/switch/eth0/vlan/2/ports)"
     25        echo 1 >/proc/switch/eth0/reset
    2726
    28         case "$(nvram get boardtype)" in
    29                 0x0467|0x042f) echo "0 1 2 3 5u*";;
    30                             *) echo "1 2 3 4 5u*";;
    31         esac > /proc/switch/eth0/vlan/0/ports
    32                 export v0p v1p v2p
     27        case "$(nvram get boardtype)" in
     28        0x0467|0x042f)  echo "0 1 2 3 5u*";;
     29        *)              echo "1 2 3 4 5u*";;
     30        esac >/proc/switch/eth0/vlan/0/ports
     31        export v0p v1p v2p
    3332}
Note: See TracChangeset for help on using the changeset viewer.