liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1a041392aa08a36a2d97d8af1f624aa8458671b4
parent 6469408d5fd5ac39d3af8491e177f34702c3e407
Author: Daniel Barlow <dan@telent.net>
Date:   Wed, 27 Dec 2023 17:47:42 +0000

liminix-rebuild: add --no-reboot param

Diffstat:
Mpkgs/min-copy-closure/liminix-rebuild.sh | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/pkgs/min-copy-closure/liminix-rebuild.sh b/pkgs/min-copy-closure/liminix-rebuild.sh @@ -1,11 +1,18 @@ #!/usr/bin/env bash ssh_command=${SSH_COMMAND-ssh} +if [ "$1" = "--no-reboot" ] ; then + reboot="true" + shift +else + reboot="reboot" +fi + target_host=$1 shift if [ -z "$target_host" ] ; then - echo Usage: liminix-rebuild target-host params + echo Usage: liminix-rebuild [--no-reboot] target-host params exit 1 fi