4 [ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc
/net
/dev
&& {
5 if [ "$pi_preinit_net_messages" = "y" ] ||
[ "$pi_failsafe_net_message" = "true" ] && [ "$pi_preinit_no_failsafe_netmsg" != "y" ]; then
6 netmsg
$pi_broadcast "$1"
11 preinit_ip_deconfig
() {
12 if [ -z "$pi_ifname" ]; then
13 ifconfig
$ifname 0.0.0.0 down
15 grep -q "$pi_ifname" /proc
/net
/dev
&& {
16 ifconfig
$pi_ifname 0.0.0.0 down
24 [ -d /proc
/switch
/eth0
] && [ "$pi_ifname" = "eth0" ] && {
25 echo 1 > /proc
/switch
/eth
0/reset
27 # this would be easier if we blasted the message across all ports
28 # but we don't want packets leaking across interfaces
29 for port
in $
(seq 0 4); do {
30 echo "$port ${cpu_port:-5u*}" > /proc
/switch
/eth
0/vlan
/0/ports
34 echo "0 ${cpu_port:-5u*}" > /proc
/switch
/eth
0/vlan
/0/ports
This page took 0.047992 seconds and 5 git commands to generate.