brcm47xx: remove target specific network preinit config
[openwrt/openwrt.git] / target / linux / brcm47xx / base-files / lib / preinit / 15_set_preinit_interface_brcm
diff --git a/target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm b/target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm
deleted file mode 100644 (file)
index f40e160..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-preinit_ip() {
-       # if the preinit interface isn't specified and ifname is set in
-       # preinit.arch use that interface
-       if [ -z "$pi_ifname" ]; then
-               pi_ifname=$ifname
-       fi
-
-       [ -n "$pi_ifname" ] && grep -q "$pi_ifname" /proc/net/dev && {
-               ifconfig $pi_ifname $pi_ip netmask $pi_netmask broadcast $pi_broadcast up
-
-               local try=0;
-               while [ $((try++)) -le 5 ] && [ ! "$(cat /sys/class/net/$pi_ifname/operstate)" = "up" ]; do sleep 1; done
-       }
-}