chiark / gitweb /
*sigh*
[dsa-metapackages.git] / buildd-reboot
index d082ef28366957043f9eb91ed8c7f2ddcc3915bb..d2e9a5831c58a7712c418a46fa148d0ca8f8f56a 100755 (executable)
@@ -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"