aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-04-08 11:59:24 +0200
committerMathias Kresin <dev@kresin.me>2017-12-16 23:33:56 +0100
commit7f68bd811929fca11ae5dd046107d8a193d7441b (patch)
tree8fda32ee3521119a57b13bd885b74616a2e94f69 /target
parented72540c10d87d6c75982d206fe3fe942f345ebd (diff)
downloadupstream-7f68bd811929fca11ae5dd046107d8a193d7441b.tar.gz
upstream-7f68bd811929fca11ae5dd046107d8a193d7441b.tar.bz2
upstream-7f68bd811929fca11ae5dd046107d8a193d7441b.zip
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@kresin.me>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh19
1 files changed, 0 insertions, 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 a40185ad3c..0000000000
--- 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