mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
471d279dcb
commit
6fb0defebb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user