commit b21f48ba1e28734665f441e7d0029900272e979a Author: Michael Date: Fri Oct 8 02:40:56 2021 -0400 Initial commit with just a few files. diff --git a/bin/model b/bin/model new file mode 100755 index 0000000..3e5a7e6 --- /dev/null +++ b/bin/model @@ -0,0 +1,13 @@ +#!/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