From 3ad1640d6f168b6f575133bad8db675b37241bc2 Mon Sep 17 00:00:00 2001 From: nagumii Date: Thu, 21 Nov 2024 22:32:00 +0200 Subject: [PATCH] continued script mods --- scripts/luckfox-install.sh | 4 ++-- scripts/usbconfig.sh | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/luckfox-install.sh b/scripts/luckfox-install.sh index c95ce50..c410b13 100644 --- a/scripts/luckfox-install.sh +++ b/scripts/luckfox-install.sh @@ -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 \ No newline at end of file diff --git a/scripts/usbconfig.sh b/scripts/usbconfig.sh index 5747c63..f1a3952 100644 --- a/scripts/usbconfig.sh +++ b/scripts/usbconfig.sh @@ -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"