[package] switch:
[openwrt.git] / target / linux / brcm-2.4 / base-files / lib / preinit / 05_set_failsafe_switch_brcm
index 28e62e5..a93559f 100644 (file)
@@ -6,7 +6,7 @@ failsafe_ip() {
                echo "0 1 2 3 4 ${cpu_port:-5u*}" > /proc/switch/eth0/vlan/0/ports
        }
        
-       [ -n "$pi_ifname" ] && grep "$pi_ifname" /proc/net/dev >/dev/null && {
+       [ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc/net/dev && {
                ifconfig $pi_ifname $pi_ip netmask $pi_netmask broadcast $pi_broadcast up
         }
 }
This page took 0.02172 seconds and 4 git commands to generate.