From 1dbd7c05a2496a50bcbeaccfb5bcc412a8ef1559 Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Thu, 27 Jul 2023 21:20:05 +0600 Subject: Add unknown board build number support Signed-off-by: Mubashshir --- patch/armbian2shopno | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'patch/armbian2shopno') diff --git a/patch/armbian2shopno b/patch/armbian2shopno index 43caa53..314e3fc 100644 --- a/patch/armbian2shopno +++ b/patch/armbian2shopno @@ -1,8 +1,12 @@ #!/bin/sh VERSION=4.11 BOARD=$( - xargs -0 printf '%s\n' < /sys/firmware/devicetree/base/model | - xargs printf '%s\n' | tail -n2 | tr -d '[:space:][:punct:]' + if test -e /sys/firmware/devicetree/base/model; then + xargs -0 printf '%s\n' < /sys/firmware/devicetree/base/model | + xargs printf '%s\n' | tail -n2 + else + echo Generic-$(uname -m) + fi | tr -d '[:space:][:punct:]' ) if [ "$(id -u)" -gt 0 ]; then -- cgit v1.2.3