From 3a36c8ef121ba7b91c9581e280e7179d172e0f87 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 20 Apr 2012 18:45:08 +0200 Subject: [PATCH] nonotify in bootstrap and check server connectivity --- .../files/shares/wpkg/files/settings/wpkg/wpkg.bat/10All | 6 ++++++ .../e-smith/files/shares/tools/files/scripts/bootstrap.bat | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg/wpkg.bat/10All b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg/wpkg.bat/10All index 35469cb..77be1b4 100644 --- a/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg/wpkg.bat/10All +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/wpkg/wpkg.bat/10All @@ -18,6 +18,12 @@ echo. i i i echo \\i________________________________________________________i echo. echo. + +ping -n 2 -w 2000 $ip > NUL +if errorlevel 1 ( + echo Reseau non connecte + exit /b %errorlevel% +) net use \\\\$ip\\wpkg /user:$nt\\deploiement $pass >NUL net use \\\\$ip\\wpkglogs /user:$nt\\deploiement $pass >NUL set SOFTWARE=\\\\$ip\\wpkg\\softwares diff --git a/root/home/e-smith/files/shares/tools/files/scripts/bootstrap.bat b/root/home/e-smith/files/shares/tools/files/scripts/bootstrap.bat index 8527e77..eeebeb0 100644 --- a/root/home/e-smith/files/shares/tools/files/scripts/bootstrap.bat +++ b/root/home/e-smith/files/shares/tools/files/scripts/bootstrap.bat @@ -4,5 +4,5 @@ cd "%~dp0" call conf.bat net use \\%IPASSERELLE_IP%\wpkg net use \\%IPASSERELLE_IP%\wpkglogs -cscript "\\%IPASSERELLE_IP%\wpkg\wpkg.js" /debug /install:wpkg-gp /force +cscript "\\%IPASSERELLE_IP%\wpkg\wpkg.js" /debug /install:wpkg-gp /force /nonotify