You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
250 B

#!/bin/bash
#mymodel=`cat /sys/firmware/devicetree/base/model 2>/dev/null`
# https://stackoverflow.com/a/46163991
model=""
while IFS= read -r -d '' substring || [[ $substring ]]; do
model+="$substring"
done </proc/device-tree/model
echo $model