ef8254681c90d4a0170814a4a852291a022c65f3

If two power handler trigger at the same time, the current behavior is that we switch two time to the same target state. This move the flock to a central script that make sure only one switch is ocurring at the same time. Concurrent switch will wait for the previous one to finish before guessing the new target state. This also refactorise the sxmo_proximitylock.sh to make it simple, stripping the two related proximitylock and proximityunlock states. Signed-off-by: Willow Barraco <contact@willowbarraco.fr> Signed-off-by: Anjandev Momi <anjan@momi.ca>
sxmo-utils
This repository contains scripts and C programs to support Sxmo.
Note all scripts pass shellcheck and are tab-idented.
<Various scripts and small C programs that glue the Sxmo environment together>
Copyright (C) <2022> <Sxmo Contributors>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3 of the License only.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Description
Languages
Shell
97.5%
Makefile
1.3%
C
1.2%