try to ping boot server as part of the sanity check
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 5 Apr 2012 12:24:44 +0000 (14:24 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 5 Apr 2012 12:24:44 +0000 (14:24 +0200)
initscripts/pl_functions

index 040a37a..62740c2 100644 (file)
@@ -21,6 +21,10 @@ function pl_network_sanity_checks () {
     verbose_run_command ifconfig
     verbose_show_message Routing table
     verbose_run_command netstat -rn
+    BOOT_FILE=/usr/boot/boot_server
+    BOOT_SERVER=$(cat $BOOT_FILE)
+    verbose_show_message Pinging boot server "(" $BOOT_SERVER ")" from file $BOOT_FILE
+    verbose_run_command ping -c 4 -w 4 $BOOT_SERVER
     verbose_show_message Pinging google public DNS 
     verbose_run_command ping -c 1 -w 5 8.8.8.8
     # try to resolve this hostname as that's the one used for ntp