lantiq: use the generic board detect
authorMathias Kresin <dev@kresin.me>
Sat, 8 Apr 2017 09:59:24 +0000 (11:59 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 16 Dec 2017 22:33:56 +0000 (23:33 +0100)
Drop the target specific detection function in favour of the generic
one provided by base-files.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh [deleted file]

diff --git a/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh b/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh
deleted file mode 100755 (executable)
index a40185a..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-lantiq_board_detect() {
-       name="$(strings /proc/device-tree/compatible | head -1)"
-       model="$(cat /proc/device-tree/model)"
-       [ -z "$name" ] && name="unknown"
-       [ -z "$model" ] && model="unknown"
-       [ -e "/tmp/sysinfo/" ] || mkdir -p "/tmp/sysinfo/"
-       echo $name > /tmp/sysinfo/board_name
-       echo $model > /tmp/sysinfo/model
-}
-
-do_lantiq() {
-       . /lib/functions/lantiq.sh
-
-       lantiq_board_detect
-}
-
-boot_hook_add preinit_main do_lantiq