aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib/preinit
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/lantiq/base-files/lib/preinit')
-rwxr-xr-xtarget/linux/lantiq/base-files/lib/preinit/03_preinit_board.sh9
-rw-r--r--target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq18
2 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/lib/preinit/03_preinit_board.sh b/target/linux/lantiq/base-files/lib/preinit/03_preinit_board.sh
new file mode 100755
index 0000000..6d4bd67
--- /dev/null
+++ b/target/linux/lantiq/base-files/lib/preinit/03_preinit_board.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+do_lantiq() {
+ . /lib/functions/lantiq.sh
+
+ lantiq_board_detect
+}
+
+boot_hook_add preinit_main do_lantiq
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 0000000..3d7fabf
--- /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
+