diff options
author | John Crispin <blogic@openwrt.org> | 2015-02-09 12:14:48 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-02-09 12:14:48 +0000 |
commit | 6fb0defebb305b3f2d32c351e3c017ea8b45b17a (patch) | |
tree | 8c287b51ffdc8585771925ef29330054aff7fb97 /target/linux/lantiq | |
parent | 471d279dcbdd7381f891098b35f2ac178b11e0ac (diff) | |
download | master-187ad058-6fb0defebb305b3f2d32c351e3c017ea8b45b17a.tar.gz master-187ad058-6fb0defebb305b3f2d32c351e3c017ea8b45b17a.tar.bz2 master-187ad058-6fb0defebb305b3f2d32c351e3c017ea8b45b17a.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44353 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq')
-rw-r--r-- | target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq | 18 |
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 + |