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.

13 lines
187 B

5 years ago
#!/usr/bin/env sh
PIDS=""
for i in "$@"; do
sxmo_setpineled "$i" 150 &
PIDS="$PIDS $!"
done
echo "$PIDS" | grep -E '[^ ]+' | xargs wait
for i in "$@"; do
sxmo_setpineled "$i" 0
done