From cf20f0df201b5b0ae4ce3150d40c37535f0eabcc Mon Sep 17 00:00:00 2001 From: redxef Date: Tue, 12 Oct 2021 11:36:50 +0200 Subject: [PATCH] Change permissions of files. --- .editorconfig | 0 .gitignore | 0 base.conf.tmpl | 2 +- debian.conf.tmpl | 1 - debian.desktop | 0 default.conf.tmpl | 2 +- hardware.conf.tmpl | 0 net | 2 +- pci | 6 ++++-- pre-start.sh | 6 ++++-- vfio_devices.txt | 0 win10.conf.tmpl | 0 win10vm.desktop | 0 13 files changed, 11 insertions(+), 8 deletions(-) mode change 100644 => 100755 .editorconfig mode change 100644 => 100755 .gitignore mode change 100644 => 100755 base.conf.tmpl mode change 100644 => 100755 debian.conf.tmpl mode change 100644 => 100755 debian.desktop mode change 100644 => 100755 default.conf.tmpl mode change 100644 => 100755 hardware.conf.tmpl mode change 100644 => 100755 vfio_devices.txt mode change 100644 => 100755 win10.conf.tmpl mode change 100644 => 100755 win10vm.desktop diff --git a/.editorconfig b/.editorconfig old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/base.conf.tmpl b/base.conf.tmpl old mode 100644 new mode 100755 index b661521..2da871f --- a/base.conf.tmpl +++ b/base.conf.tmpl @@ -5,8 +5,8 @@ -cpu host,kvm=on,topoext,tsc_deadline,tsc_adjust,l3-cache,hv_vendor_id=null,hv_vpindex,hv_runtime,hv_synic,hv_stimer,hv_reset,hv_frequencies,hv_tlbflush,hv_reenlightenment,hv_ipi,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff -m 12G -mem-prealloc -mem-path /dev/hugepages --vga none -nographic -parallel none -serial none -rtc clock=host,base=localtime,driftfix=none -usb +-vga none -nographic diff --git a/debian.conf.tmpl b/debian.conf.tmpl old mode 100644 new mode 100755 index 94143f0..2c0dfcf --- a/debian.conf.tmpl +++ b/debian.conf.tmpl @@ -1,3 +1,2 @@ --drive file=debian-11.0.0-amd64-netinst.iso,media=cdrom -drive file=debian.qcow2,if=virtio,cache=off diff --git a/debian.desktop b/debian.desktop old mode 100644 new mode 100755 diff --git a/default.conf.tmpl b/default.conf.tmpl old mode 100644 new mode 100755 index cb92a99..298a5d8 --- a/default.conf.tmpl +++ b/default.conf.tmpl @@ -1,4 +1,4 @@ -netdev tap,id=net0,br=$BR_NAME,ifname=$TAP_NAME,script=no,downscript=no --device e1000,netdev=net0 +-device rtl8139,netdev=net0 -audiodev pa,id=snd0,server=unix:/run/user/$MYUID/pulse/native -device intel-hda -device hda-duplex,audiodev=snd0 diff --git a/hardware.conf.tmpl b/hardware.conf.tmpl old mode 100644 new mode 100755 diff --git a/net b/net index 2ec058c..9c166e2 100755 --- a/net +++ b/net @@ -7,7 +7,7 @@ BASE_BRIDGE_NAME=br-q BASE_TAP_NAME=tap-q randstr() { - dd if=/dev/urandom count=1 bs=4 | xxd -p -g 0 + dd if=/dev/urandom count=1 bs=4 2>/dev/null | xxd -p -g 0 } default_route() { diff --git a/pci b/pci index 231823d..54e6900 100755 --- a/pci +++ b/pci @@ -14,8 +14,10 @@ vfio_rebind_device() { pci_id="$1" if [[ -e "$BASE_PATH/devices/$pci_id" ]]; then - echo "$pci_id" | sudo tee "$BASE_PATH/devices/$pci_id/driver/unbind" - echo "$pci_id" | sudo tee "$BASE_PATH/drivers/vfio-pci/bind" + echo "$pci_id" | sudo tee \ + "$BASE_PATH/devices/$pci_id/driver/unbind" >/dev/null + echo "$pci_id" | sudo tee \ + "$BASE_PATH/drivers/vfio-pci/bind" > /dev/null fi } diff --git a/pre-start.sh b/pre-start.sh index b899e2c..c068cf0 100755 --- a/pre-start.sh +++ b/pre-start.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash -if [[ -z "$DEBUG" ]]; then +if [[ -z "$DEBUG" ]] \ + && [[ -e /sys/bus/platform/devices/efi-framebuffer.0/driver ]]; then + echo efi-framebuffer.0 | sudo tee \ - '/sys/bus/platform/devices/efi-framebuffer.0/driver/unbind' || true + '/sys/bus/platform/devices/efi-framebuffer.0/driver/unbind' fi diff --git a/vfio_devices.txt b/vfio_devices.txt old mode 100644 new mode 100755 diff --git a/win10.conf.tmpl b/win10.conf.tmpl old mode 100644 new mode 100755 diff --git a/win10vm.desktop b/win10vm.desktop old mode 100644 new mode 100755