1
0
Fork 0
mirror of https://github.com/foxlet/macOS-Simple-KVM.git synced 2024-12-24 18:59:43 +01:00

[CONF] fixes from shellcheck

This commit is contained in:
Jeremy Lavergne 2019-07-19 15:44:21 -04:00 committed by Foxlet
parent b41c6d6db4
commit 6baf520cc9
5 changed files with 20 additions and 20 deletions

View file

@ -14,8 +14,8 @@ qemu-system-x86_64 \
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
-device isa-applesmc,osk="$OSK" \
-smbios type=2 \
-drive if=pflash,format=raw,readonly,file=$OVMF/OVMF_CODE.fd \
-drive if=pflash,format=raw,file=$OVMF/OVMF_VARS-1024x768.fd \
-drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \
-drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \
-vga qxl \
-device ich9-intel-hda -device hda-output \
-usb -device usb-kbd -device usb-mouse \

View file

@ -36,8 +36,8 @@ qemu-system-x86_64 \
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
-device isa-applesmc,osk="$OSK" \
-smbios type=2 \
-drive if=pflash,format=raw,readonly,file=$OVMF/OVMF_CODE.fd \
-drive if=pflash,format=raw,file=$OVMF/OVMF_VARS-1024x768.fd \
-drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \
-drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \
-vga qxl \
-usb -device usb-kbd -device usb-tablet \
-netdev user,id=net0 \
@ -49,4 +49,4 @@ qemu-system-x86_64 \
-device ide-hd,bus=sata.3,drive=InstallMedia \
-drive id=SystemDisk,if=none,file="${SYSTEM_DISK}" \
-device ide-hd,bus=sata.4,drive=SystemDisk \
${MOREARGS[@]}
"${MOREARGS[@]}"

View file

@ -16,24 +16,24 @@ print_usage() {
}
error() {
local error_message="$@"
local error_message="$*"
echo "${error_message}" 1>&2;
}
argument="$1"
case $argument in
-s|--high-sierra)
$TOOLS/FetchMacOS/fetch.sh -p 091-95155 -c PublicRelease13 || exit 1;
;;
-m|--mojave)
$TOOLS/FetchMacOS/fetch.sh -l -c PublicRelease14 || exit 1;
;;
-c|--catalina|*)
$TOOLS/FetchMacOS/fetch.sh -l -c DeveloperSeed || exit 1;
;;
-h|--help)
print_usage
;;
-s|--high-sierra)
"$TOOLS/FetchMacOS/fetch.sh" -p 091-95155 -c PublicRelease13 || exit 1;
;;
-m|--mojave)
"$TOOLS/FetchMacOS/fetch.sh" -l -c PublicRelease14 || exit 1;
;;
-c|--catalina|*)
"$TOOLS/FetchMacOS/fetch.sh" -l -c DeveloperSeed || exit 1;
;;
esac
$TOOLS/dmg2img $TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg $PWD/BaseSystem.img
"$TOOLS/dmg2img" "$TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg" "$PWD/BaseSystem.img"

View file

@ -4,7 +4,7 @@
# by Foxlet <foxlet@furcode.co>
VMDIR=$PWD
MACHINE=$(qemu-system-x86_64 --machine help | grep q35 | cut -d" " -f1 | egrep -oe ".*-[0-9.]+" | sort -rV | head -1)
MACHINE="$(qemu-system-x86_64 --machine help | grep q35 | cut -d" " -f1 | grep -Eoe ".*-[0-9.]+" | sort -rV | head -1)"
OUT="template.xml"
print_usage() {
@ -16,7 +16,7 @@ print_usage() {
}
error() {
local error_message="$@"
local error_message="$*"
echo "${error_message}" 1>&2;
}

View file

@ -15,8 +15,8 @@ qemu-system-x86_64 \
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
-device isa-applesmc,osk="$OSK" \
-smbios type=2 \
-drive if=pflash,format=raw,readonly,file=$OVMF/OVMF_CODE.fd \
-drive if=pflash,format=raw,file=$OVMF/OVMF_VARS-1024x768.fd \
-drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \
-drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \
-vga std \
-device ich9-intel-hda -device hda-output \
-usb -device usb-kbd -device usb-mouse \