3 preinit_net_echo_send
() {
6 [ -d /proc
/switch
/eth0
] && [ "$pi_ifname" = "eth0" ] && {
8 echo 1 > /proc
/switch
/eth
0/reset
9 echo 1 > /proc
/switch
/eth
0/enable
10 echo 1 > /proc
/switch
/eth
0/enable_vlan
12 # this would be easier if we blasted the message across all ports
13 # but we don't want packets leaking across interfaces
14 for port
in $
(seq 0 4); do {
16 echo "$port ${cpu_port:-5u*}" > /proc
/switch
/eth
0/vlan
/1/ports
19 netmsg
$pi_broadcast "$1"
22 } || netmsg
$pi_broadcast "$1"
26 [ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc
/net
/dev
&& {
28 [ "$pi_preinit_net_messages" = "y" ] ||
{
29 [ "$pi_failsafe_net_message" = "true" ] &&
30 [ "$pi_preinit_no_failsafe_netmsg" != "y" ]
32 } && preinit_net_echo_send
$1