diff --git a/aprs_help.html b/aprs_help.html index c9b2207..e3bf076 100644 --- a/aprs_help.html +++ b/aprs_help.html @@ -131,8 +131,7 @@ Print Direwolf's audio statistics every x seconds. Set to 0 to disable printing

Autostart APRS

Top -Default is disabled. If disabled, Direwolf APRS will not autostart when the Pi boots up. Otherwise, select which levers in the piano switch you want to be in the ON position. A corresponding piano script will be created and, if the switches are in the selected postion, will autostart APRS at bootup. - See Check Piano Script for details. +Default is disabled. If disabled, Direwolf APRS will not autostart when the Pi boots up. Otherwise, select which levers in the piano switch you want to be in the ON (down) position. A corresponding piano script will be created and, if the switches are in the selected postion, will autostart APRS at bootup. If 'none' is selected, meaning all switches are in the OFF (UP) position, script piano.sh will be created and will autostart APRS provided all levers are in the UP position. See Check Piano Script for details.

Top diff --git a/dw_aprs_gui.sh b/dw_aprs_gui.sh index 0bed4e6..3f3824e 100755 --- a/dw_aprs_gui.sh +++ b/dw_aprs_gui.sh @@ -16,7 +16,7 @@ #% #================================================================ #- IMPLEMENTATION -#- version ${SCRIPT_NAME} 0.1.2 +#- version ${SCRIPT_NAME} 0.1.3 #- author Steve Magnuson, AG7GN #- license CC-BY-SA Creative Commons License #- script_id 0 @@ -218,8 +218,8 @@ function loadSettings () { ;; esac - BOOTSTARTs="disabled~1~12~13~14~123~124~134~1234~2~23~234~24~3~34~4" - [[ $BOOTSTARTs =~ ${F[_BOOTSTART_]} && ${F[_BOOTSTART_]} =~ ^[1-4]{1,4}$ ]] && BOOTSTARTs="$(echo "$BOOTSTARTs" | sed "s/~${F[_BOOTSTART_]}/~\^${F[_BOOTSTART_]}/1")" || BOOTSTARTs="^$BOOTSTARTs" + BOOTSTARTs="disabled~none~1~12~13~14~123~124~134~1234~2~23~234~24~3~34~4" + [[ $BOOTSTARTs =~ ${F[_BOOTSTART_]} && ${F[_BOOTSTART_]} =~ ^(none|[1-4]{1,4})$ ]] && BOOTSTARTs="$(echo "$BOOTSTARTs" | sed "s/~${F[_BOOTSTART_]}/~\^${F[_BOOTSTART_]}/1")" || BOOTSTARTs="^$BOOTSTARTs" case ${F[_APRSMODE_]} in Digi*) # Digipeater or Digipeater + iGate @@ -615,13 +615,16 @@ do # Make or update an autostart piano switch script if necessary if [[ ${F[_BOOTSTART_]} == "disabled" ]] then # Disable autostart - rm -f $HOME/piano$PREVIOUS_AUTOSTART.sh + [[ $PREVIOUS_AUTOSTART =~ none ]] && SWITCHES="" || SWITCHES="$PREVIOUS_AUTOSTART" + rm -f $HOME/piano${SWITCHES}.sh else # Enable autostart if [[ ${F[_BOOTSTART_]} != $PREVIOUS_AUTOSTART ]] then # Previous autostart was not the same as the requested autostart - rm -f $HOME/piano$PREVIOUS_AUTOSTART.sh - echo -e "#!/bin/bash\n$(command -v $(basename $0)) >/dev/null 2>&1" > $HOME/piano${F[_BOOTSTART_]}.sh - chmod +x $HOME/piano${F[_BOOTSTART_]}.sh + [[ $PREVIOUS_AUTOSTART =~ none ]] && SWITCHES="" || SWITCHES="$PREVIOUS_AUTOSTART" + rm -f $HOME/piano${SWITCHES}.sh + [[ ${F[_BOOTSTART_]} =~ none ]] && SWITCHES="" || SWITCHES="${F[_BOOTSTART_]}" + echo -e "#!/bin/bash\n$(command -v $(basename $0)) >/dev/null 2>&1" > $HOME/piano${SWITCHES}.sh + chmod +x $HOME/piano$SWITCHES.sh fi fi ;; diff --git a/hampi-utilities.version b/hampi-utilities.version index 1890b83..4cfab3a 100644 --- a/hampi-utilities.version +++ b/hampi-utilities.version @@ -1 +1 @@ -VERSION="2.1.27" \ No newline at end of file +VERSION="2.2.0" \ No newline at end of file