diff --git a/createlinks b/createlinks index a3a1208..16431cf 100644 --- a/createlinks +++ b/createlinks @@ -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)); diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/session.bat/10All b/root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/session.bat/10All new file mode 100644 index 0000000..28097e1 --- /dev/null +++ b/root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/session.bat/10All @@ -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; + +} diff --git a/root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/session.bat/template-begin b/root/etc/e-smith/templates/home/e-smith/files/shares/tools/files/scripts/session.bat/template-begin new file mode 100644 index 0000000..e69de29 diff --git a/root/home/e-smith/files/shares/tools/files/scripts/session/010signature.bat b/root/home/e-smith/files/shares/tools/files/scripts/session/010signature.bat new file mode 100644 index 0000000..9167cee --- /dev/null +++ b/root/home/e-smith/files/shares/tools/files/scripts/session/010signature.bat @@ -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" +)