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
This commit is contained in:
John Crispin 2015-02-09 12:14:48 +00:00
parent 1c9dc26ce9
commit 1c0c1ebc6b

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