PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : /etc/init.d/boot.local >> SCPM-Profil prüfen und dann passendes Skript ausführen



baeus
04.09.05, 13:37
Hallo Forum,

ich habe in Grub zwei SCPM Profile angelegt.

Je nachdem, welches SCMP-Profil ausgewählt wird, soll in /etc/init.d/boot.local der eine oder andere Befehl angestoßen werden.


Also soll das shellskript Folgendes können:

1. Lese das in Grub ausgewählte SCPM-Profil aus
2. Wenn Profil = Profil1, dann führe dd usw. aus
3. Wenn Profil = Profil2, dann führe dd genau umgekehrt aus.
4. Else do nothing.

Kann jemand mit korrekter shellsyntax aushelfen?
Gracias
baeus