X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=initscripts%2Fpl_functions;h=62740c29cd4ccf7664f9e910f36d230c70bde416;hb=1b2182f952db063cbf0adbfd3625dff6bb522c2e;hp=040a37ac20fb763cbe3fc6d81ed514fc39a5d2cb;hpb=f40e9c9c3d86a0862308cbd6a999f3cb7d468253;p=bootcd.git 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