wake up only on server per call
This commit is contained in:
parent
4a60501de5
commit
90a0ed4edd
1 changed files with 1 additions and 3 deletions
4
wol.sh
4
wol.sh
|
@ -8,8 +8,6 @@ TARGETS=(
|
||||||
"ortie (prod): 00:23:24:b0:01:b9"
|
"ortie (prod): 00:23:24:b0:01:b9"
|
||||||
)
|
)
|
||||||
|
|
||||||
MACS=$(gum choose --no-limit "${TARGETS[@]}" | sed 's/^[^:]*: *//')
|
MACS=$(gum choose -- "${TARGETS[@]}" | sed 's/^[^:]*: *//')
|
||||||
|
|
||||||
[ -z "$MACS" ] && echo You must select at least one server to wake up && exit 1
|
|
||||||
|
|
||||||
wakeonlan -- $MACS
|
wakeonlan -- $MACS
|
||||||
|
|
Loading…
Add table
Reference in a new issue