6 # hardware specific overrides
7 case "$(cat /proc/diag/model)" in
8 "Linksys WAP54G V1") ifname
=eth1
;;
9 "ASUS WL-HDD") ifname
=eth1
;;
10 "ASUS WL-300g") ifname
=eth1
;;
11 "ASUS (unknown, BCM4702)") ifname
=eth1
;;
12 "Sitecom WL-105b") ifname
=eth1
;;
15 # The interface has to be up to configure the switch
16 ifconfig
$ifname 0.0.0.0 up
17 [ -f /lib
/modules
/`uname -r`/switch-robo.ko
] && {
21 [ -f /lib
/modules
/`uname -r`/switch-adm.ko
] && {
28 [ -d /proc
/switch
/eth0
] && [ "$ifname" = "eth0" ] && {
29 case "$(cat /proc/switch/eth0/cpuport)" in
36 boot_hook_add preinit_main set_preinit_iface
37 boot_hook_add preinit_main init_iface