coming back to a model that works .. most of the time
[bootcd.git] / initscripts / pl_boot
index ce685c9..51aee96 100755 (executable)
@@ -1,5 +1,13 @@
 #!/bin/bash
 
+### xxx tmp debug
+
+set -x
+echo pl_boot on console > /dev/console
+exec > /dev/console
+echo pl_boot plain
+
+###
 . /etc/init.d/pl_functions
 
 . /tmp/planet.cnf
@@ -107,11 +115,7 @@ while : ; do
 
     if [[ $contact_count != 0 ]]; then
 
-        if [[ $on_backup_server == 1 ]]; then
-            echo $(date "+%H:%M:%S") " pl_boot: attempting to fetch script from backup server in 30s"
-        else
-            echo $(date "+%H:%M:%S") " pl_boot: attempting to fetch script from primary server in 30s"
-        fi
+        echo $(date "+%H:%M:%S") " pl_boot: next attempt in 30s, to fetch script from server at $CONNECT_BOOT_SERVER"
        /bin/sleep 30
     fi