[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/usr/share/se3/sbin/ -> createtemplateparc.sh (source)

   1  #!/bin/bash
   2  
   3  # Script de création du dossier au nom du parc dans /home/template
   4  # Stéphane Boireau - 18/03/2005
   5  
   6  if [ ! -z "$1" ]; then
   7          verif=$(echo "$1" | sed -e "s/[A-Za-z0-9_.]//g" | wc -c | sed -e "s/ //g")
   8          if [ "$verif" = "1" ]; then
   9                  if [ ! -e "/home/templates/$1" ]; then
  10                          mkdir -p /home/templates/$1
  11                          mkdir -p /home/templates/$1/Bureau
  12                          mkdir -p /home/templates/$1/Demarrer/Programmes
  13                          echo "rem Script de login du parc $1" > /home/templates/$1/logon.bat
  14                          echo "rem Partie commune a tous les clients." >> /home/templates/$1/logon.bat
  15                          vim -c "set ff=dos"  -c ":wq" /home/templates/$1/logon.bat
  16  
  17                          echo "rem Script de login du parc $1" > /home/templates/$1/logon_Win95.bat
  18                          echo "rem Partie specifique aux clients win9x" >> /home/templates/$1/logon_Win95.bat
  19                          vim -c "set ff=dos"  -c ":wq" /home/templates/$1/logon_Win95.bat
  20  
  21                          echo "rem Script de login du parc $1" > /home/templates/$1/logon_Win2K.bat
  22                          echo "rem Partie specifique aux clients win2k/xp" >> /home/templates/$1/logon_Win2K.bat
  23                          vim -c "set ff=dos"  -c ":wq" /home/templates/$1/logon_Win2K.bat
  24                  fi
  25          fi
  26  fi


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1