mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
ramips: extract board name from device tree as a fallback
This makes it possible to avoid more duplication when adding support for a new board Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
b15c563929
commit
3eb839b579
@ -737,7 +737,9 @@ ramips_board_detect() {
|
||||
name="youku-yk1"
|
||||
;;
|
||||
*)
|
||||
name="generic"
|
||||
name="$(strings /proc/device-tree/compatible | head -1)"
|
||||
name="${name##*,}"
|
||||
name="${name:-generic}"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user