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