Scripts de session

tags/0.1.3
Daniel Berteaud 13 years ago
parent 3526142cc8
commit a09210157b
  1. 1
      createlinks
  2. 13
      root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/session.bat/10All
  3. 0
      root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/session.bat/template-begin
  4. 7
      root/home/e-smith/files/shares/tools/files/scripts/session/010signature.bat

@ -6,6 +6,7 @@ event_link("wpkg-init", "wpkg-update", "20");
event_link("wpkg-init", "ipasserelle-update", "20");
event_link("initialize-default-databases", "wpkg-update", "02");
templates2events("/home/e-smith/files/shares/tools/files/scripts/session.bat", qw(wpkg-update bootstrap-console-save));
templates2events("/home/e-smith/files/shares/tools/files/scripts/wpkg/conf.bat", qw(wpkg-update bootstrap-console-save));
templates2events("/home/e-smith/files/shares/tools/files/scripts/session/conf.bat", qw(wpkg-update bootstrap-console-save));
templates2events("/home/e-smith/files/shares/wpkg/files/config.xml", qw(wpkg-update bootstrap-console-save));

@ -0,0 +1,13 @@
{
my $ip = $InternalInterface{'IPAddress'};
$OUT .=<<"EOF";
SET IPASSERELLE_IP=$ip
for /F "tokens=*" %%f in ('dir /B /ON \\\\%IPASSERELLE_IP%\\tools\scripts\session\*.bat') do call %%f
EOF
# Unix2dos
$OUT =~ s/\n/\r\n/g;
}

@ -0,0 +1,7 @@
set DOC=Mes Documents
if exist \\%IPASSERELLE_IP%\tools\signatures\%USERNAME% (
if exist %USERPROFILE%\Documents (
set DOC=Documents
)
xcopy /E /I /Y \\%IPASSERELLE_IP%\tools\signatures\%USERNAME% "%USERPROFILE%\%DOC%\signature"
)
Loading…
Cancel
Save