[source] lantiq: use the generic board detect

LEDE Commits lede-commits at lists.infradead.org
Sat Dec 16 14:35:12 PST 2017


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/7f68bd811929fca11ae5dd046107d8a193d7441b

commit 7f68bd811929fca11ae5dd046107d8a193d7441b
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Sat Apr 8 11:59:24 2017 +0200

    lantiq: use the generic board detect
    
    Drop the target specific detection function in favour of the generic
    one provided by base-files.
    
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 .../lantiq/base-files/lib/preinit/01_preinit_board.sh | 19 -------------------
 1 file changed, 19 deletions(-)

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
index a40185a..0000000
--- a/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh
+++ /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



More information about the lede-commits mailing list