From 6fb0defebb305b3f2d32c351e3c017ea8b45b17a Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 9 Feb 2015 12:14:48 +0000 Subject: lantiq: td-w8970: fix failsafe mode Fix failsafe mode for TD-W8970, register interface for preinit. Signed-off-by: Cezary Jackiewicz git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44353 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../base-files/lib/preinit/05_set_preinit_iface_lantiq | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq (limited to 'target/linux/lantiq/base-files') 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 0000000000..3d7fabf8e3 --- /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 + -- cgit v1.2.3