Habe nun mal die Gelegenheit gehabt, es elegant zu machen (ist auch im KHC):
; *** SATA-SCSI-Support switch ***
;
; What it does: Turns SCSI/SATA-support on or off based on assigned dummy-hwmisc-driver
;
; Issue: Some PCs need SCSI/SATA enabled, others crash if SCSI is enabled.
;
; Solution: By assigning the SATA-SCSI-Support driver to a PC model in
; the Empirum hardware profile definition SCSI/SATA support is enabled for
; this model only, other PC models do not try to install SCSI/SATA-drivers.
; A log-entry will be written to the PXE-log if SCSI/SATA support has
; been enabled by this script.
;
; How to implement:
; - Add this script to Empinst\Wizard\Scripts\custom\begin_win2000.eis
; - recreate the pxe-images and bootdisks
; - Manually integrate a new HWMISC-driver without spy disk:
; - Productname: SATA-SCSI-Support
; - Vendor: matrix42
; - internal name: matrix_SATAS_cu (important! Must match string below!)
; - ClassGUID: 42 (can be renamed to whatever you want in the GUI later)
; - Driver-Dir: SATA.CU
; - XP- and Windows 2000-support: "Tested"
; - "driver will be copied later"
; The EmpInst\Wizard\HWMISC\mscindex.ini-entry should look like this:
; [matrix_SATAS_cu]
; VendorName=matrix42
; Name=SATA-SCSI-Support
; Version=cu1000
; VENDORID=0
; DEVICEID=0
; SUBVENDORID=0
; SUBDEVICEID=0
; W2000Ready= YES
; WXPReady=YES
; WNTReady=NO
; W95Ready=NO
; W9xReady=NO
; Dir=Sata.cu
; WinDetectString=
; - Assign this new driver to the PC-models that need SCSI- or SATA-support
; - SCSI-support should be turned OFF by default (EIS.INI)
;
; Feedback/questions:
HAmbrosius@matrix42.de / Nov 9th, 2005
GOSUB GetMachineID
READINI %E%Wizard\HWMisc\HWIndex.ini %MachineIdNum% HW_MachineName HW_MachineName
IF "%HW_MachineName%"<>"" THEN
FOR --l=1 TO 100 STEP 1
READINI %E%Wizard\HWMisc\HWIndex.ini %MachineIdNum% AuxID%l% DrvName
IF "%DrvName%"="matrix_SATAS_cu" THEN
SET UseSCSI="YES"
; Send message to PXE-log (optional)
CMD "S:\MSG.exe /h:%ServiceServerIP% /p:10042 /m:%MAC% "2 SCSI-SATA-Support enabled!""
ENDIF
NEXT
ENDIF