You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
333 B

#!/usr/bin/env sh
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
PIDS=""
for i in "$@"; do
sxmo_setled.sh "$i" 150 &
PIDS="$PIDS $!"
done
echo "$PIDS" | grep -E '[^ ]+' | xargs wait
# Make blink noticable
sleep 0.1
for i in "$@"; do
sxmo_setled.sh "$i" 0
done