mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 00:24:12 +00:00
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>
This commit is contained in:
parent
ed72540c10
commit
7f68bd8119
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user