|
|
@ -88,7 +88,7 @@ CURRENT_DATE_TIME=$(date +"%Y-%m-%d %H:%M:%S") |
|
|
|
if [ "$Interface" == "ax0" ]; then |
|
|
|
if [ "$Interface" == "ax0" ]; then |
|
|
|
|
|
|
|
|
|
|
|
# Log message |
|
|
|
# Log message |
|
|
|
echo "$CURRENT_DATE_TIME,ax0,$Call,APRX29,$Message" >> $APRS_RECEIVED_MESSAGES_DIR$MESSAGE_FILE |
|
|
|
echo "$CURRENT_DATE_TIME,ax0,$Call,APRX29,\"$Message\"" >> $APRS_RECEIVED_MESSAGES_DIR$MESSAGE_FILE |
|
|
|
|
|
|
|
|
|
|
|
# if call is less than 9 characters, add spaces at the end (according to the APRS protocol) |
|
|
|
# if call is less than 9 characters, add spaces at the end (according to the APRS protocol) |
|
|
|
printf -v Call %-9.9s "$Call" |
|
|
|
printf -v Call %-9.9s "$Call" |
|
|
@ -103,7 +103,7 @@ if [ "$Interface" == "ax0" ]; then |
|
|
|
|
|
|
|
|
|
|
|
elif [ "$Interface" == "ax1" ]; then |
|
|
|
elif [ "$Interface" == "ax1" ]; then |
|
|
|
# Log message |
|
|
|
# Log message |
|
|
|
echo "$CURRENT_DATE_TIME,ax1,$Call,APRX29,$Message" >> $APRS_RECEIVED_MESSAGES_DIR$MESSAGE_FILE |
|
|
|
echo "$CURRENT_DATE_TIME,ax1,$Call,APRX29,\"$Message\"" >> $APRS_RECEIVED_MESSAGES_DIR$MESSAGE_FILE |
|
|
|
|
|
|
|
|
|
|
|
# if call is less than 9 characters, add spaces at the end (according to the APRS protocol) |
|
|
|
# if call is less than 9 characters, add spaces at the end (according to the APRS protocol) |
|
|
|
printf -v Call %-9.9s "$Call" |
|
|
|
printf -v Call %-9.9s "$Call" |
|
|
@ -129,7 +129,7 @@ elif [ "$Interface" == "ax1" ]; then |
|
|
|
/usr/sbin/beacon "${args[@]}" |
|
|
|
/usr/sbin/beacon "${args[@]}" |
|
|
|
elif [ "$Interface" == "ax2" ]; then |
|
|
|
elif [ "$Interface" == "ax2" ]; then |
|
|
|
# Log message |
|
|
|
# Log message |
|
|
|
echo "$CURRENT_DATE_TIME,ax2,$Call,APRX29,$Message" >> $APRS_RECEIVED_MESSAGES_DIR$MESSAGE_FILE |
|
|
|
echo "$CURRENT_DATE_TIME,ax2,$Call,APRX29,\"$Message\"" >> $APRS_RECEIVED_MESSAGES_DIR$MESSAGE_FILE |
|
|
|
|
|
|
|
|
|
|
|
# if call is less than 9 characters, add spaces at the end (according to the APRS protocol) |
|
|
|
# if call is less than 9 characters, add spaces at the end (according to the APRS protocol) |
|
|
|
printf -v Call %-9.9s "$Call" |
|
|
|
printf -v Call %-9.9s "$Call" |
|
|
|