From 3e40704c9c744771c64ba4b895e56481edef4a39 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 2 Apr 2023 22:53:06 +0200 Subject: [PATCH] Shellchecks --- disk.sh | 6 +++--- power.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/disk.sh b/disk.sh index 6468606..8c3fcce 100644 --- a/disk.sh +++ b/disk.sh @@ -22,11 +22,11 @@ fi KVM_DISK_OPTS="\ -device virtio-scsi-pci,id=hw-synoboot,bus=pci.0,addr=0xa \ - -drive file="$IMG"/"$BASE".boot.img,if=none,id=drive-synoboot,format=raw,cache=none,aio=native,detect-zeroes=on \ + -drive file=${IMG}/${BASE}.boot.img,if=none,id=drive-synoboot,format=raw,cache=none,aio=native,detect-zeroes=on \ -device scsi-hd,bus=hw-synoboot.0,channel=0,scsi-id=0,lun=0,drive=drive-synoboot,id=synoboot0,bootindex=1 \ -device virtio-scsi-pci,id=hw-synosys,bus=pci.0,addr=0xb \ - -drive file="$IMG"/"$BASE".system.img,if=none,id=drive-synosys,format=raw,cache=none,aio=native,detect-zeroes=on \ + -drive file=${IMG}/${BASE}.system.img,if=none,id=drive-synosys,format=raw,cache=none,aio=native,detect-zeroes=on \ -device scsi-hd,bus=hw-synosys.0,channel=0,scsi-id=0,lun=0,drive=drive-synosys,id=synosys0,bootindex=2 \ -device virtio-scsi-pci,id=hw-userdata,bus=pci.0,addr=0xc \ - -drive file="$IMG"/data"$DISK_SIZE".img,if=none,id=drive-userdata,format=raw,cache=none,aio=native,detect-zeroes=on \ + -drive file=${IMG}/data${DISK_SIZE}.img,if=none,id=drive-userdata,format=raw,cache=none,aio=native,detect-zeroes=on \ -device scsi-hd,bus=hw-userdata.0,channel=0,scsi-id=0,lun=0,drive=drive-userdata,id=userdata0,bootindex=3" diff --git a/power.sh b/power.sh index 5aa2bc6..bf26ff9 100644 --- a/power.sh +++ b/power.sh @@ -37,4 +37,4 @@ _graceful_shutdown() { trap _graceful_shutdown SIGINT SIGTERM SIGHUP -KVM_MON_OPTS="-monitor telnet:localhost:"${QEMU_MONPORT:-7100}",server,nowait,nodelay" +KVM_MON_OPTS="-monitor telnet:localhost:${QEMU_MONPORT:-7100},server,nowait,nodelay"