From d46a447c2998723ed5c9c02c7aa9009a82de196c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Oct 2017 13:32:21 +0200 Subject: Move shutdown to platform-specific scripts --- etc/bootstrap/bbot-bootstrap-freebsd.sh | 5 +++++ etc/bootstrap/bbot-bootstrap-linux.sh | 5 +++++ etc/bootstrap/bbot-bootstrap-macos.sh | 5 +++++ etc/bootstrap/bbot-bootstrap.sh | 5 ----- 4 files changed, 15 insertions(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/bootstrap/bbot-bootstrap-freebsd.sh b/etc/bootstrap/bbot-bootstrap-freebsd.sh index 8a86696..497225e 100755 --- a/etc/bootstrap/bbot-bootstrap-freebsd.sh +++ b/etc/bootstrap/bbot-bootstrap-freebsd.sh @@ -15,3 +15,8 @@ fi --make gmake \ --make "-j$jobs" \ "$@" + +# Wait a bit and shutdown. +# +sleep 5 +sudo shutdown -h now diff --git a/etc/bootstrap/bbot-bootstrap-linux.sh b/etc/bootstrap/bbot-bootstrap-linux.sh index 0aa408d..9bcd29b 100755 --- a/etc/bootstrap/bbot-bootstrap-linux.sh +++ b/etc/bootstrap/bbot-bootstrap-linux.sh @@ -12,3 +12,8 @@ fi --make make \ --make "-j$jobs" \ "$@" + +# Wait a bit and shutdown. +# +sleep 5 +sudo shutdown -h now diff --git a/etc/bootstrap/bbot-bootstrap-macos.sh b/etc/bootstrap/bbot-bootstrap-macos.sh index e7f7be8..0aa4ec3 100755 --- a/etc/bootstrap/bbot-bootstrap-macos.sh +++ b/etc/bootstrap/bbot-bootstrap-macos.sh @@ -17,3 +17,8 @@ fi --make make \ --make "-j$jobs" \ "$@" + +# Wait a bit and shutdown. +# +sleep 5 +sudo shutdown -h now diff --git a/etc/bootstrap/bbot-bootstrap.sh b/etc/bootstrap/bbot-bootstrap.sh index 5908fe1..df717e8 100755 --- a/etc/bootstrap/bbot-bootstrap.sh +++ b/etc/bootstrap/bbot-bootstrap.sh @@ -138,8 +138,3 @@ run rm -r "$config" # run bbot-worker --bootstrap >manifest run curl -s -S --upload-file manifest "tftp://$tftp/manifest" - -# Wait a bit and shutdown. -# -sleep 2 -sudo shutdown -h now -- cgit v1.1