aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-bootstrap.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-06 19:20:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-06 19:20:17 +0200
commitb0cfa2cf7956827447685c2b044556c1ca8dc5c4 (patch)
treeeb2fdb392ea407aa2bb94dd5779cb075331a9816 /etc/bootstrap/bbot-bootstrap.sh
parentfa6875384e70f2c9bf2e871991db22839cf6fbd5 (diff)
Add shutdown to bootstrap script
Qemu's system_powerdown is proving to be useless.
Diffstat (limited to 'etc/bootstrap/bbot-bootstrap.sh')
-rwxr-xr-xetc/bootstrap/bbot-bootstrap.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/bootstrap/bbot-bootstrap.sh b/etc/bootstrap/bbot-bootstrap.sh
index 9e7ace8..ec046ca 100755
--- a/etc/bootstrap/bbot-bootstrap.sh
+++ b/etc/bootstrap/bbot-bootstrap.sh
@@ -137,3 +137,8 @@ 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