7 echo "0 1 2 3 4 5u*" > /proc/switch/eth0/vlan/0/ports
10 [ -x "/usr/sbin/nvram" ] && {
11 [ "$(nvram get boot_wait)" != "on" ] && {
12 nvram set boot_wait=on
17 netmsg 192.168.1.255 "Entering Failsafe!"
18 telnetd -l /bin/login <> /dev/null 2>&1
23 mount none /proc -t proc
27 echo '/sbin/hotplug.failsafe' > /proc/sys/kernel/hotplug
31 # hardware specific overrides
32 case "$(cat /proc/diag/model)" in
33 "Linksys WAP54G V1") ifname=eth1;;
34 "ASUS WL-HDD") ifname=eth1;;
35 "ASUS WL-300g") ifname=eth1;;
36 "ASUS (unknown, BCM4702)") ifname=eth1;;
37 "Sitecom WL-105b") ifname=eth1;;
43 insmod switch-robo || insmod switch-adm || rmmod switch-core
45 [ -d /proc/switch/eth0 ] && {
46 echo 1 > /proc/switch/eth0/reset
48 # this would be easier if we blasted the message across all ports
49 # but we don't want packets leaking across interfaces
50 for port in $(seq 0 4); do {
51 echo "$port 5u*" > /proc/switch/eth0/vlan/0/ports
52 netmsg 192.168.1.255 "Press reset now, to enter Failsafe!"
54 } || netmsg 192.168.1.255 "Press reset now, to enter Failsafe!"
56 ifconfig $ifname 0.0.0.0 down