Loading .github/workflows/check.yml +1 −1 Original line number Diff line number Diff line Loading @@ -11,4 +11,4 @@ jobs: - name: Run ShellCheck uses: ludeeus/action-shellcheck@master env: SHELLCHECK_OPTS: -x --source-path=src -e SC2001 -e SC2223 -e SC2034 -e SC2064 -e SC2317 -e SC2153 -e SC2028 SHELLCHECK_OPTS: -x --source-path=src -e SC2001 -e SC2034 -e SC2064 -e SC2317 -e SC2153 -e SC2028 src/disk.sh +13 −13 Original line number Diff line number Diff line Loading @@ -3,12 +3,12 @@ set -Eeuo pipefail # Docker environment variables : ${DISK_IO:='native'} # I/O Mode, can be set to 'native', 'threads' or 'io_turing' : ${DISK_FMT:='raw'} # Disk file format, 'raw' by default for best performance : ${DISK_FLAGS:=''} # Specifies the options for use with the qcow2 disk format : ${DISK_CACHE:='none'} # Caching mode, can be set to 'writeback' for better performance : ${DISK_DISCARD:='on'} # Controls whether unmap (TRIM) commands are passed to the host. : ${DISK_ROTATION:='1'} # Rotation rate, set to 1 for SSD storage and increase for HDD : "${DISK_IO:='native'}" # I/O Mode, can be set to 'native', 'threads' or 'io_turing' : "${DISK_FMT:='raw'}" # Disk file format, 'raw' by default for best performance : "${DISK_FLAGS:=''}" # Specifies the options for use with the qcow2 disk format : "${DISK_CACHE:='none'}" # Caching mode, can be set to 'writeback' for better performance : "${DISK_DISCARD:='on'}" # Controls whether unmap (TRIM) commands are passed to the host. : "${DISK_ROTATION:='1'}" # Rotation rate, set to 1 for SSD storage and increase for HDD BOOT="$STORAGE/$BASE.boot.img" SYSTEM="$STORAGE/$BASE.system.img" Loading Loading @@ -472,14 +472,14 @@ fi DISK4_FILE="/storage4/data4" : ${DISK2_SIZE:=''} : ${DISK3_SIZE:=''} : ${DISK4_SIZE:=''} : "${DISK2_SIZE:=''}" : "${DISK3_SIZE:=''}" : "${DISK4_SIZE:=''}" : ${DEVICE:=''} # Docker variables to passthrough a block device, like /dev/vdc1. : ${DEVICE2:=''} : ${DEVICE3:=''} : ${DEVICE4:=''} : "${DEVICE:=''}" # Docker variables to passthrough a block device, like /dev/vdc1. : "${DEVICE2:=''}" : "${DEVICE3:=''}" : "${DEVICE4:=''}" if [ -n "$DEVICE" ]; then addDevice "userdata" "$DEVICE" "device" "3" "0xc" || exit $? Loading src/display.sh +2 −2 Original line number Diff line number Diff line Loading @@ -3,8 +3,8 @@ set -Eeuo pipefail # Docker environment variables : ${GPU:='N'} # GPU passthrough : ${DISPLAY:='none'} # Display type : "${GPU:='N'}" # GPU passthrough : "${DISPLAY:='none'}" # Display type if [[ "$GPU" != [Yy1]* ]] || [[ "$ARCH" != "amd64" ]]; then Loading src/install.sh +1 −1 Original line number Diff line number Diff line #!/usr/bin/env bash set -Eeuo pipefail : ${URL:=''} # URL of the PAT file to be downloaded. : "${URL:=''}" # URL of the PAT file to be downloaded. if [ -f "$STORAGE/dsm.ver" ]; then BASE=$(<"$STORAGE/dsm.ver") Loading src/network.sh +9 −9 Original line number Diff line number Diff line Loading @@ -3,17 +3,17 @@ set -Eeuo pipefail # Docker environment variables : ${DHCP:='N'} : ${MAC:='02:11:32:AA:BB:CC'} : "${DHCP:='N'}" : "${MAC:='02:11:32:AA:BB:CC'}" : ${VM_NET_DEV:=''} : ${VM_NET_TAP:='dsm'} : ${VM_NET_MAC:="$MAC"} : ${VM_NET_HOST:='VirtualDSM'} : "${VM_NET_DEV:=''}" : "${VM_NET_TAP:='dsm'}" : "${VM_NET_MAC:="$MAC"}" : "${VM_NET_HOST:='VirtualDSM'}" : ${DNSMASQ_OPTS:=''} : ${DNSMASQ:='/usr/sbin/dnsmasq'} : ${DNSMASQ_CONF_DIR:='/etc/dnsmasq.d'} : "${DNSMASQ_OPTS:=''}" : "${DNSMASQ:='/usr/sbin/dnsmasq'}" : "${DNSMASQ_CONF_DIR:='/etc/dnsmasq.d'}" ADD_ERR="Please add the following setting to your container:" Loading Loading
.github/workflows/check.yml +1 −1 Original line number Diff line number Diff line Loading @@ -11,4 +11,4 @@ jobs: - name: Run ShellCheck uses: ludeeus/action-shellcheck@master env: SHELLCHECK_OPTS: -x --source-path=src -e SC2001 -e SC2223 -e SC2034 -e SC2064 -e SC2317 -e SC2153 -e SC2028 SHELLCHECK_OPTS: -x --source-path=src -e SC2001 -e SC2034 -e SC2064 -e SC2317 -e SC2153 -e SC2028
src/disk.sh +13 −13 Original line number Diff line number Diff line Loading @@ -3,12 +3,12 @@ set -Eeuo pipefail # Docker environment variables : ${DISK_IO:='native'} # I/O Mode, can be set to 'native', 'threads' or 'io_turing' : ${DISK_FMT:='raw'} # Disk file format, 'raw' by default for best performance : ${DISK_FLAGS:=''} # Specifies the options for use with the qcow2 disk format : ${DISK_CACHE:='none'} # Caching mode, can be set to 'writeback' for better performance : ${DISK_DISCARD:='on'} # Controls whether unmap (TRIM) commands are passed to the host. : ${DISK_ROTATION:='1'} # Rotation rate, set to 1 for SSD storage and increase for HDD : "${DISK_IO:='native'}" # I/O Mode, can be set to 'native', 'threads' or 'io_turing' : "${DISK_FMT:='raw'}" # Disk file format, 'raw' by default for best performance : "${DISK_FLAGS:=''}" # Specifies the options for use with the qcow2 disk format : "${DISK_CACHE:='none'}" # Caching mode, can be set to 'writeback' for better performance : "${DISK_DISCARD:='on'}" # Controls whether unmap (TRIM) commands are passed to the host. : "${DISK_ROTATION:='1'}" # Rotation rate, set to 1 for SSD storage and increase for HDD BOOT="$STORAGE/$BASE.boot.img" SYSTEM="$STORAGE/$BASE.system.img" Loading Loading @@ -472,14 +472,14 @@ fi DISK4_FILE="/storage4/data4" : ${DISK2_SIZE:=''} : ${DISK3_SIZE:=''} : ${DISK4_SIZE:=''} : "${DISK2_SIZE:=''}" : "${DISK3_SIZE:=''}" : "${DISK4_SIZE:=''}" : ${DEVICE:=''} # Docker variables to passthrough a block device, like /dev/vdc1. : ${DEVICE2:=''} : ${DEVICE3:=''} : ${DEVICE4:=''} : "${DEVICE:=''}" # Docker variables to passthrough a block device, like /dev/vdc1. : "${DEVICE2:=''}" : "${DEVICE3:=''}" : "${DEVICE4:=''}" if [ -n "$DEVICE" ]; then addDevice "userdata" "$DEVICE" "device" "3" "0xc" || exit $? Loading
src/display.sh +2 −2 Original line number Diff line number Diff line Loading @@ -3,8 +3,8 @@ set -Eeuo pipefail # Docker environment variables : ${GPU:='N'} # GPU passthrough : ${DISPLAY:='none'} # Display type : "${GPU:='N'}" # GPU passthrough : "${DISPLAY:='none'}" # Display type if [[ "$GPU" != [Yy1]* ]] || [[ "$ARCH" != "amd64" ]]; then Loading
src/install.sh +1 −1 Original line number Diff line number Diff line #!/usr/bin/env bash set -Eeuo pipefail : ${URL:=''} # URL of the PAT file to be downloaded. : "${URL:=''}" # URL of the PAT file to be downloaded. if [ -f "$STORAGE/dsm.ver" ]; then BASE=$(<"$STORAGE/dsm.ver") Loading
src/network.sh +9 −9 Original line number Diff line number Diff line Loading @@ -3,17 +3,17 @@ set -Eeuo pipefail # Docker environment variables : ${DHCP:='N'} : ${MAC:='02:11:32:AA:BB:CC'} : "${DHCP:='N'}" : "${MAC:='02:11:32:AA:BB:CC'}" : ${VM_NET_DEV:=''} : ${VM_NET_TAP:='dsm'} : ${VM_NET_MAC:="$MAC"} : ${VM_NET_HOST:='VirtualDSM'} : "${VM_NET_DEV:=''}" : "${VM_NET_TAP:='dsm'}" : "${VM_NET_MAC:="$MAC"}" : "${VM_NET_HOST:='VirtualDSM'}" : ${DNSMASQ_OPTS:=''} : ${DNSMASQ:='/usr/sbin/dnsmasq'} : ${DNSMASQ_CONF_DIR:='/etc/dnsmasq.d'} : "${DNSMASQ_OPTS:=''}" : "${DNSMASQ:='/usr/sbin/dnsmasq'}" : "${DNSMASQ_CONF_DIR:='/etc/dnsmasq.d'}" ADD_ERR="Please add the following setting to your container:" Loading