From: Thierry Parmentelat Date: Thu, 5 Apr 2012 12:24:44 +0000 (+0200) Subject: try to ping boot server as part of the sanity check X-Git-Tag: bootcd-5.1-1~8 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=1b2182f952db063cbf0adbfd3625dff6bb522c2e try to ping boot server as part of the sanity check --- diff --git a/initscripts/pl_functions b/initscripts/pl_functions index 040a37a..62740c2 100644 --- a/initscripts/pl_functions +++ b/initscripts/pl_functions @@ -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