home · contact · privacy
Minor fixes.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 4 Mar 2025 01:38:55 +0000 (02:38 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 4 Mar 2025 01:38:55 +0000 (02:38 +0100)
testing/home/t490s/.nonpath_bins/status.sh
testing/scripts/setup_secrets_root.sh

index 740bc7a7b920afc9bf1602f01cbf5cde9a6d50ae..9e2b365736949ee4448c8592cfcb66407a608d0f 100755 (executable)
@@ -5,7 +5,7 @@ printf '{ "version": 1 }\n[\n'
 while true; do
   printf '  [\n'
   printf '    {"full_text": "%s"},\n' "$(ip -4 addr show scope global | grep -oP '(?<=inet\s)\d+(\.\d+){3}')"
-  printf '    {"full_text": "%d° C"},\n' $(calc "$(cat /sys/class/thermal/thermal_zone0/temp) // ${MEGA}")
+  printf '    {"full_text": "%d° C"},\n' $(calc "$(cat /sys/class/thermal/thermal_zone0/temp) // ${MEGA}")  # thermal_zone0 is what ACPI's interested in, so probably a fair choice among the many alternatives
   printf '    {"full_text": "%s"},\n' "$(date +'%Y-%m-%d %H:%M:%S/%Z')"
   printf '  ],\n'
   sleep 1
index 249c12aee9a81fd53fc50b5c04a9788d397bf659..1e705e3c929ceab536493e370900aa0d0541e821 100755 (executable)
@@ -16,7 +16,7 @@ while [ ! -e "${PATH_DEV}" ]; do
 done
 while [ true ]; do
     stty -echo
-    printf "Secrets passphrase: "
+    printf "\nSecrets passphrase: "
     read SECRETS_PASS 
     stty echo
     echo "" # newline so user knows their input return was accepted
@@ -35,4 +35,4 @@ cp -a "${PATH_SOURCE}" "${PATH_SECRETS}"
 pumount "${SECRETS_DEV}"
 echo "You can remove ${PATH_DEV} now."
 chown -R "${USERNAME}:${USERNAME}" "${PATH_SECRETS}"
-sudo -lu "${USERNAME}" ./setup_secrets_user.sh
+sudo -u "${USERNAME}" ./setup_secrets_user.sh