fix brcm-2.4/brcm47xx failsafe init (thx, puchu)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 28 Jan 2010 19:27:39 +0000 (19:27 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 28 Jan 2010 19:27:39 +0000 (19:27 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19365 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/brcm-2.4/base-files/lib/preinit/05_init_interfaces_brcm

index 81cf1f13806004413c8956996f1fcc083d069e44..3cd760e2db5bc43c8ef85def465caff0e11b041f 100644 (file)
@@ -13,6 +13,7 @@ set_preinit_iface() {
                "ASUS (unknown, BCM4702)") ifname=eth1;;
                "Sitecom WL-105b") ifname=eth1;;
        esac
+       ifconfig $ifname 0.0.0.0 up
 }
 
 check_module () {
@@ -32,7 +33,5 @@ init_iface() {
        } || rmmod switch-core
 }
 
-boot_hook_add preinit_main init_iface
 boot_hook_add preinit_main set_preinit_iface
-
-
+boot_hook_add preinit_main init_iface