From 6374e458be065e1be9e627b56746cfbf13607530 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 4 May 2024 23:05:02 +0200 Subject: [PATCH] Update disk.sh --- src/disk.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/disk.sh b/src/disk.sh index b32abec8..b0857473 100644 --- a/src/disk.sh +++ b/src/disk.sh @@ -511,6 +511,11 @@ fi : "${DEVICE3:=""}" : "${DEVICE4:=""}" +[ -z "$DEVICE" ] && [ -b "/disk1" ] && DEVICE="/disk1" +[ -z "$DEVICE2" ] && [ -b "/disk2" ] && DEVICE2="/disk2" +[ -z "$DEVICE3" ] && [ -b "/disk3" ] && DEVICE3="/disk3" +[ -z "$DEVICE4" ] && [ -b "/disk4" ] && DEVICE4="/disk4" + [ -z "$DEVICE" ] && [ -b "/dev/disk1" ] && DEVICE="/dev/disk1" [ -z "$DEVICE2" ] && [ -b "/dev/disk2" ] && DEVICE2="/dev/disk2" [ -z "$DEVICE3" ] && [ -b "/dev/disk3" ] && DEVICE3="/dev/disk3"