Update config cleanup

pull/302/head
Alan Johnston 2 years ago committed by GitHub
parent 91f568dff1
commit 8fc19a80d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,15 +15,15 @@ if [ "$1" = "" ]; then
set -- $value set -- $value
if [ "$1" = "a" ]; then if [ "$1" = "a" ]; then
echo "APRS mode is set" echo "Mode is APRS"
elif [ "$1" = "m" ]; then elif [ "$1" = "m" ]; then
echo "CW mode is set" echo "Mode is CW"
elif [ "$1" = "f" ]; then elif [ "$1" = "f" ]; then
echo "FSK mode is set" echo "Mode is FSK"
elif [ "$1" = "b" ]; then elif [ "$1" = "b" ]; then
echo "BPSK mode is set" echo "Mode is BPSK"
elif [ "$1" = "s" ]; then elif [ "$1" = "s" ]; then
echo "SSTV mode is set" echo "Mode is SSTV"
else else
echo echo
fi fi
@ -103,7 +103,7 @@ elif [ "$1" = "-a" ]; then
echo "Battery saver mode is ON." echo "Battery saver mode is ON."
# if ! grep -q force_turbo=1 /boot/config.txt ; then sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt'; fi # if ! grep -q force_turbo=1 /boot/config.txt ; then sudo sh -c 'echo "force_turbo=1" >> /boot/config.txt'; fi
else else
echo "Battery saver mode os OFF." echo "Battery saver mode is OFF."
# sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt # sudo sed -i ':a;N;$!ba;s/\nforce_turbo=1//g' /boot/config.txt
fi fi

Loading…
Cancel
Save

Powered by TurnKey Linux.