[OpenWrt-Devel] [PATCH] lantiq: td-w8970: fix failsafe mode

Cezary Jackiewicz cezary.jackiewicz at gmail.com
Sun Feb 8 02:42:25 EST 2015


Fix failsafe mode for TD-W8970, register interface for preinit.

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz at gmail.com>
---

diff --git a/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq b/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
new file mode 100644
index 0000000..3d7fabf
--- /dev/null
+++ b/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+. /lib/functions/lantiq.sh
+
+set_preinit_iface() {
+
+	board=$(lantiq_board_name)
+
+	case "$board" in
+	TDW8970)
+		ifname=eth0
+		;;
+	esac
+
+}
+
+boot_hook_add preinit_main set_preinit_iface
+



-- 
Pozdrawiam,
 Cezary Jackiewicz
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list