Skip to content

Commit

Permalink
autogain: allow temporary suspension via lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed May 1, 2024
1 parent fe6e880 commit 6bf958c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rootfs/usr/local/bin/autogain1090
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ gain_array=(0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4

autogain_dir="/var/globe_history/autogain"
mkdir -p $autogain_dir

if [[ -f "${autogain_dir}/suspend" ]]; then
# allow temporary suspending of autogain by touching this file
exit 0
fi

touch $autogain_dir/strong $autogain_dir/total


Expand Down

0 comments on commit 6bf958c

Please sign in to comment.