continued script mods

This commit is contained in:
nagumii 2024-11-21 22:32:00 +02:00
parent 0c10c9ec15
commit 3ad1640d6f
2 changed files with 2 additions and 4 deletions

View file

@ -10,7 +10,7 @@ echo -n "Enter wifi password: "
stty -echo # Disable terminal echo
read PASSWORD
stty echo # Re-enable terminal echo
echo "\n*** SSID saved. Wifi requires adapter ***\e[0m\n"
printf "\n*** SSID saved. Wifi requires adapter ***\e[0m\n"
if ! grep -q "tmpfs /run tmpfs size=32M,nosuid,noexec,relatime,mode=755 0 0" /etc/fstab; then
@ -176,5 +176,5 @@ sudo rm -rf ~/femtofox
printf "*** $(date "+%H:%M:%S %Z"): Configuration complete... ***\e[0m\n"
echo "\e[1;31mPress any key to reboot...\e[0m\n"
printf "\e[1;31mPress any key to reboot...\e[0m\n"
read -n 1 -s && sudo reboot

View file

@ -3,8 +3,6 @@
# Set the mount point
MOUNT_POINT="/mnt/usb"
echo 34 > /sys/class/gpio/export && echo out > /sys/class/gpio/gpio34/direction
# Function to log both to the screen and syslog
log_message() {
local msg="USB config: $1"