[LEDE-DEV] [PATCH 3/3] brcm47xx: fix failsafe networking for WRT54GSv1
Mirko Parthey
mirko.parthey at web.de
Thu May 18 12:49:04 PDT 2017
Remove obsolete platform-specific network configuration files which broke
networking in failsafe mode.
Fixes FS#790.
Signed-off-by: Mirko Parthey <mirko.parthey at web.de>
---
.../base-files/lib/preinit/05_init_interfaces_brcm | 16 ----------------
.../base-files/lib/preinit/15_set_preinit_interface_brcm | 16 ----------------
2 files changed, 32 deletions(-)
delete mode 100644 target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm
delete mode 100644 target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm
diff --git a/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm b/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm
deleted file mode 100644
index 4b0d0eb674ae..000000000000
--- a/target/linux/brcm47xx/base-files/lib/preinit/05_init_interfaces_brcm
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-preinit_iface() {
- ifname=eth0
-
- # hardware specific overrides
- case "$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)" in
- "Asus WLHDD") ifname=eth1;;
- "Asus WL300G") ifname=eth1;;
- esac
-
- local try=0;
- while [ $((try++)) -le 5 ] && [ ! -f /sys/class/net/$ifname/operstate ]; do sleep 1; done
-}
-
-boot_hook_add preinit_main preinit_iface
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
index f40e160b3b03..000000000000
--- a/target/linux/brcm47xx/base-files/lib/preinit/15_set_preinit_interface_brcm
+++ /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
- }
-}
--
2.1.4
More information about the Lede-dev
mailing list