Skip to content

Commit

Permalink
Update 01-acarsdec
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Jan 7, 2024
1 parent 3327c9a commit fdee7fb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions rootfs/etc/s6-overlay/scripts/01-acarsdec
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ if [[ "${MODE}" != @(J|j|P|p|A|a) ]]; then
exit 1
fi

if [[ -n "${SERVER}" && -z "${SERVER_PORT}" ]]; then
"${s6wrap[@]}" echo "SERVER is set but SERVER_PORT is not set, exiting"
exit 1
fi

# Make sure GAIN is valid (if set)
if [[ -n "${GAIN}" ]] && [[ "$(awk '{if ($1 > 0 && $1 < 100) printf "%i", $1 * 10; else printf "%i", $1;}' <<< "${GAIN}")" == "0" ]]; then
"${s6wrap[@]}" echo "GAIN is not valid, exiting"
Expand Down

0 comments on commit fdee7fb

Please sign in to comment.