parent
2ee1342cfa
commit
1460f0c37d
1 changed files with 11 additions and 3 deletions
@ -1,4 +1,12 @@ |
|||||||
#!/usr/bin/env sh |
#!/usr/bin/env sh |
||||||
sxmo_setpineled "$1" 150 |
PIDS="" |
||||||
sleep 0.01 |
for i in "$@"; do |
||||||
sxmo_setpineled "$1" 0 |
sxmo_setpineled "$i" 150 & |
||||||
|
PIDS="$PIDS $!" |
||||||
|
done |
||||||
|
|
||||||
|
echo "$PIDS" | grep -E '[^ ]+' | xargs wait |
||||||
|
|
||||||
|
for i in "$@"; do |
||||||
|
sxmo_setpineled "$i" 0 |
||||||
|
done |
||||||
|
Loading…
Reference in new issue