Skip to content

Commit

Permalink
lantiq: td-w8970: fix failsafe mode
Browse files Browse the repository at this point in the history
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
  • Loading branch information
John Crispin committed Feb 9, 2015
1 parent 471d279 commit 6fb0def
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6fb0def

Please sign in to comment.