From 0b9e8349c5c9298311c32c2ade64f38126eb500a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 4 Mar 2025 02:38:55 +0100 Subject: [PATCH] Minor fixes. --- testing/home/t490s/.nonpath_bins/status.sh | 2 +- testing/scripts/setup_secrets_root.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/home/t490s/.nonpath_bins/status.sh b/testing/home/t490s/.nonpath_bins/status.sh index 740bc7a..9e2b365 100755 --- a/testing/home/t490s/.nonpath_bins/status.sh +++ b/testing/home/t490s/.nonpath_bins/status.sh @@ -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 diff --git a/testing/scripts/setup_secrets_root.sh b/testing/scripts/setup_secrets_root.sh index 249c12a..1e705e3 100755 --- a/testing/scripts/setup_secrets_root.sh +++ b/testing/scripts/setup_secrets_root.sh @@ -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 -- 2.30.2