From b21f48ba1e28734665f441e7d0029900272e979a Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Oct 2021 02:40:56 -0400 Subject: [PATCH] Initial commit with just a few files. --- bin/model | 13 +++++++++++++ bin/temp | 6 ++++++ home/.vimrc | 4 ++++ home/profile-addons | 4 ++++ 4 files changed, 27 insertions(+) create mode 100755 bin/model create mode 100755 bin/temp create mode 100644 home/.vimrc create mode 100644 home/profile-addons 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