Gleiches Basisimage bei zwei Linbo-Gruppenkonfigurationen

Hallo Achim,

Ich mache das auch mit Postsync, allerdings umgekehrt: Jede Software ist im Image und bei speziellen PCs werden Programmordner und Verknüpfungen gelöscht. Das herausfiltern, welche PCs welche Software bekommen mache ich über den PC-Namen (mit softwaretype=„${HOSTNAME:8:1}“ wird der 8. Buchstabe des Namens ausgelesen).
Ich habe zwar nur Linux-Clients, aber das Problem ist ja betriebssystemunabhängig.

Hier ein postsync-Beispiel:

# MSO2000 behalten oder loeschen

softwaretype="${HOSTNAME:8:1}"
echo $softwaretype

case $softwaretype in 
 m*)
  echo Softwaretyp MSO2000
   ;;
 s*)
  echo Softwaretyp Standard
  rm -r "/mnt/home/wine.drive_c/Program Files (x86)/Microsoft Office/Office"
  rm -r "/mnt/home/wine.drive_c/Program Files (x86)/Microsoft Office/Stationery"
  rm -r "/mnt/home/wine.drive_c/Program Files (x86)/Microsoft Office/Templates"
  rm /mnt/usr/share/applications/word.desktop
  rm /mnt/usr/share/applications/excel.desktop
  rm /mnt/usr/share/applications/powerpoint.desktop
   ;;
 *)
  echo Softwaretyp konnte nicht ermittelt werden!
  rm -r "/mnt/home/wine.drive_c/Program Files (x86)/Microsoft Office/Office"
  rm -r "/mnt/home/wine.drive_c/Program Files (x86)/Microsoft Office/Stationery"
  rm -r "/mnt/home/wine.drive_c/Program Files (x86)/Microsoft Office/Templates"
  rm /mnt/usr/share/applications/word.desktop
  rm /mnt/usr/share/applications/excel.desktop
  rm /mnt/usr/share/applications/powerpoint.desktop
   ;;
esac

Gruß
Stefan