From: John Crispin Date: Mon, 9 Feb 2015 12:14:48 +0000 (+0000) Subject: lantiq: td-w8970: fix failsafe mode X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1c0c1ebc6b672e4dd4e4167230c271ff83437b08;p=openwrt%2Fstaging%2Frmilecki.git lantiq: td-w8970: fix failsafe mode Fix failsafe mode for TD-W8970, register interface for preinit. Signed-off-by: Cezary Jackiewicz SVN-Revision: 44353 --- 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 00000000000..3d7fabf8e3a --- /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 +