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
lede-17.01
John Crispin 2015-02-09 12:14:48 +00:00
parent 1c9dc26ce9
commit 1c0c1ebc6b
1 changed files with 18 additions and 0 deletions

View File

@ -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