diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-10-20 13:32:21 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-10-20 13:32:21 +0200 |
commit | d46a447c2998723ed5c9c02c7aa9009a82de196c (patch) | |
tree | 918761ec96211033a47fe2f629817dd0b08be548 /etc/bootstrap | |
parent | 1fcd5d1067254c40921df17b8de906c81934077a (diff) |
Move shutdown to platform-specific scripts
Diffstat (limited to 'etc/bootstrap')
-rwxr-xr-x | etc/bootstrap/bbot-bootstrap-freebsd.sh | 5 | ||||
-rwxr-xr-x | etc/bootstrap/bbot-bootstrap-linux.sh | 5 | ||||
-rwxr-xr-x | etc/bootstrap/bbot-bootstrap-macos.sh | 5 | ||||
-rwxr-xr-x | etc/bootstrap/bbot-bootstrap.sh | 5 |
4 files changed, 15 insertions, 5 deletions
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 |