lantiq: fix network in failsafe
authorMathias Kresin <dev@kresin.me>
Sun, 19 Jun 2016 14:30:55 +0000 (16:30 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 22 Jun 2016 17:32:06 +0000 (19:32 +0200)
So far the network in failsafe is setup only for one board. Use the
eth0 interface as lan interface for all boards for now.

If a board has its lan interface(s) on another eth, a special
handling based on the board name can be added.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq

index 3d7fabf8e3add15a30b5af26c5153613f4928cdf..7ed0fabcf7af6ae50ca169e261c47226f00088b8 100644 (file)
@@ -3,15 +3,7 @@
 . /lib/functions/lantiq.sh
 
 set_preinit_iface() {
-
-       board=$(lantiq_board_name)
-
-       case "$board" in
-       TDW8970)
-               ifname=eth0
-               ;;
-       esac
-
+       ifname=eth0
 }
 
 boot_hook_add preinit_main set_preinit_iface