Skip to content
Snippets Groups Projects
Commit ec991424 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

base-files: add generic board_name function to functions.sh


This will be used to replace all those nasty board specific scripts
that do basically the same thing

Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 76cc2643
No related branches found
No related tags found
No related merge requests found
......@@ -353,4 +353,8 @@ user_exists() {
grep -qs "^${1}:" ${IPKG_INSTROOT}/etc/passwd
}
board_name() {
[ -e /tmp/sysinfo/board_name ] && cat /tmp/sysinfo/board_name || echo "generic"
}
[ -z "$IPKG_INSTROOT" -a -f /lib/config/uci.sh ] && . /lib/config/uci.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment