X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dsa-metapackages.git;a=blobdiff_plain;f=buildd-reboot;fp=buildd-reboot;h=d2e9a5831c58a7712c418a46fa148d0ca8f8f56a;hp=d082ef28366957043f9eb91ed8c7f2ddcc3915bb;hb=decc3ecfc1d6525e2d9eb1541155fa4fcd2e41af;hpb=64e3a3b0460eea3c739e306730c131cbddf76c25 diff --git a/buildd-reboot b/buildd-reboot index d082ef2..d2e9a58 100755 --- a/buildd-reboot +++ b/buildd-reboot @@ -50,7 +50,7 @@ wall_counter=0 maybe_wall() { wall_counter=$((wall_counter-1)) if [ "$wall_counter" -le 0 ]; then - if [ "$host" = 1 ]; then + if [ "$halt" = 1 ]; then echo "System will halt for $reason when buildd has stopped" | wall else echo "System will reboot for $reason when buildd has stopped" | wall @@ -79,7 +79,7 @@ buildd_wait_and_reboot() { echo fi - if [ "$host" = 1 ]; then + if [ "$halt" = 1 ]; then /sbin/shutdown -p 15 "$reason" else /sbin/shutdown -p 15 "$reason"