Skip to content
Snippets Groups Projects
Commit 3b7e21a6 authored by Daniel Dickinson's avatar Daniel Dickinson
Browse files

brcm-2.4: Fixed preinit and failsafe switch configuration

SVN-Revision: 21417
parent 0910a01e
No related branches found
No related tags found
No related merge requests found
.*.swp
/env
/dl
/.config
/.config.old
/bin
/build_dir
......@@ -9,7 +8,5 @@
/tmp
/logs
/feeds
/feeds.conf
/files
/package/feeds
/package/openwrt-packages
#!/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
port_net_echo $1
}; done
echo "0 ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
} || port_net_echo $1
preinit_ip_deconfig
}
#!/bin/sh
indicate_failsafe() {
preinit_net_echo() {
port_net_echo $1
}
echo "- failsafe -"
preinit_net_echo "Entering Failsafe!\n"
indicate_failsafe_led
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment