aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib/preinit
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-02-09 12:14:48 +0000
committerJohn Crispin <john@openwrt.org>2015-02-09 12:14:48 +0000
commit1c0c1ebc6b672e4dd4e4167230c271ff83437b08 (patch)
tree861dfa0bbed53fee0df9a96ec8fc3c2a537b3e0e /target/linux/lantiq/base-files/lib/preinit
parent1c9dc26ce95b7f190e9975d10543ff19e9a1987f (diff)
downloadupstream-1c0c1ebc6b672e4dd4e4167230c271ff83437b08.tar.gz
upstream-1c0c1ebc6b672e4dd4e4167230c271ff83437b08.tar.bz2
upstream-1c0c1ebc6b672e4dd4e4167230c271ff83437b08.zip
lantiq: td-w8970: fix failsafe mode
Fix failsafe mode for TD-W8970, register interface for preinit. Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> SVN-Revision: 44353
Diffstat (limited to 'target/linux/lantiq/base-files/lib/preinit')
-rw-r--r--target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq18
1 files changed, 18 insertions, 0 deletions
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
+