What is wrong with this scrip? I am trying to add multiple .kext files. The original scrip just has this line:
if [ -d "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/" ]; then
/bin/mv "$targetVolume/System/Library/Extensions/IOUSBMassStorageClass.kext"
But I want to also add those one:
if [ -d "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/" ]; then
/bin/mv "$targetVolume/System/Library/Extensions/IOUSBMassStorageClass.kext",
/bin/mv "$targetVolume/System/Library/Extensions/IOFireWireSerialBusProtocolTransport.kext",
/bin/mv "$targetVolume/System/Library/Extensions/IOUSBAttachedSCSI.kext",
/bin/mv "$targetVolume/System/Library/Extensions/IOUSBFamily.kext" "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"
else
/bin/mkdir -p "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/"
if [ -d "$targetVolume/Library/Application Support/JAMF/DisabledExtensions/" ]; then
/bin/mv "$targetVolume/System/Library/Extensions/IOUSBMassStorageClass.kext"
fi
