mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:46:16 +02:00
brcm-2.4: Fixed preinit and failsafe switch configuration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21417 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4abea1092f
commit
04fe99d30d
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,7 +1,6 @@
|
|||||||
.*.swp
|
.*.swp
|
||||||
/env
|
/env
|
||||||
/dl
|
/dl
|
||||||
/.config
|
|
||||||
/.config.old
|
/.config.old
|
||||||
/bin
|
/bin
|
||||||
/build_dir
|
/build_dir
|
||||||
@ -9,7 +8,5 @@
|
|||||||
/tmp
|
/tmp
|
||||||
/logs
|
/logs
|
||||||
/feeds
|
/feeds
|
||||||
/feeds.conf
|
|
||||||
/files
|
|
||||||
/package/feeds
|
/package/feeds
|
||||||
/package/openwrt-packages
|
/package/openwrt-packages
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
failsafe_config_switch() {
|
||||||
|
[ -d /proc/switch/eth0 ] && [ "$ifname" = "eth0" ] && {
|
||||||
|
echo "0 1 2 3 4 ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
boot_hook_add failsafe failsafe_config_switch
|
||||||
|
|
@ -30,9 +30,10 @@ preinit_net_echo() {
|
|||||||
echo "$port ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
|
echo "$port ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
|
||||||
port_net_echo $1
|
port_net_echo $1
|
||||||
}; done
|
}; done
|
||||||
} || port_net_echo $1
|
|
||||||
|
|
||||||
preinit_ip_deconfig
|
echo "0 ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
|
||||||
|
|
||||||
|
} || port_net_echo $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
indicate_failsafe() {
|
||||||
|
preinit_net_echo() {
|
||||||
|
port_net_echo $1
|
||||||
|
}
|
||||||
|
echo "- failsafe -"
|
||||||
|
preinit_net_echo "Entering Failsafe!\n"
|
||||||
|
indicate_failsafe_led
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user