aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-bootstrap-linux.sh
blob: 9bcd29bad9a19b08d4b1e1672f1cf1406404dba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# file      : etc/bootstrap/bbot-bootstrap-linux.sh
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license   : TBC; see accompanying LICENSE file

if ! jobs="$(nproc)"; then
  jobs=1
fi

"$(dirname "$0")/bbot-bootstrap.sh" \
  --make make     \
  --make "-j$jobs" \
  "$@"

# Wait a bit and shutdown.
#
sleep 5
sudo shutdown -h now