index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | David Runge <dvzrv@archlinux.org> | 2020-10-29 10:52:03 +0100 |
---|---|---|
committer | David Runge <dvzrv@archlinux.org> | 2020-10-29 16:57:04 +0100 |
commit | e748a770b1612b084f533d31c6def148eceeb130 (patch) | |
tree | c55568a4c98a1226be4863a083b6ceb3bbbbaae0 /scripts | |
parent | 8bb3e8c12f08c841e3ac13fc0e56568b253df751 (diff) |
-rwxr-xr-x | scripts/run_archiso.sh | 20 |
diff --git a/scripts/run_archiso.sh b/scripts/run_archiso.sh index 7491290..4c52703 100755 --- a/scripts/run_archiso.sh +++ b/scripts/run_archiso.sh @@ -21,6 +21,7 @@ Usage: run_archiso [options] Options: + -a set accessibility support using brltty -b set boot type to 'BIOS' (default) -d set image type to hard disk instead of optical disc -h print help @@ -76,6 +77,13 @@ run_image() { ) fi + if [[ "${accessibility}" == 'on' ]]; then + qemu_options+=( + '-chardev' 'braille,id=brltty' + '-device' 'usb-braille,id=usbbrl,chardev=brltty' + ) + fi + qemu-system-x86_64 \ -boot order=d,menu=on,reboot-timeout=5000 \ -m "size=3072,slots=0,maxmem=$((3072*1024*1024))" \ @@ -87,17 +95,15 @@ run_image() { -display sdl \ -vga virtio \ -audiodev pa,id=snd0 \ - -chardev braille,id=brltty \ -device ich9-intel-hda \ -device hda-output,audiodev=snd0 \ -device virtio-net-pci,romfile=,netdev=net0 -netdev user,id=net0 \ - -device usb-braille,id=usbbrl,chardev=brltty \ -machine type=q35,smm=on,accel=kvm,usb=on,pcspk-audiodev=snd0 \ -global ICH9-LPC.disable_s3=1 \ -enable-kvm \ "${qemu_options[@]}" \ - -no-reboot \ - -serial stdio + -serial stdio \ + -no-reboot } set_image() { @@ -113,6 +119,7 @@ set_image() { } image='' +accessibility='' boot_type='bios' mediatype='cdrom' secure_boot='off' @@ -121,8 +128,11 @@ working_dir="$(mktemp -dt run_archiso.XXXXXXXXXX)" trap cleanup_working_dir EXIT if (( ${#@} > 0 )); then - while getopts 'bdhi:su' flag; do + while getopts 'abdhi:su' flag; do case "$flag" in + a) + accessibility='on' + ;; b) boot_type='bios' ;; |