42e6674120
TODO--, and this one was pretty expected after the "invention" of iterators.
12 lines
228 B
Bash
Executable File
12 lines
228 B
Bash
Executable File
#!/bin/sh
|
|
# setup control(8) states
|
|
|
|
[ -z "$GLOBAL_CONTROL" ] ||
|
|
echo "$GLOBAL_CONTROL" \
|
|
| tr ' ' '\n' \
|
|
| while IFS=':' read facility state; do
|
|
[ -z "$facility" -o -z "$state" ] ||
|
|
control "$facility" "$state"
|
|
done
|
|
:
|