From 97fe9d0bd9f3306049c8508c2053945a6622737f Mon Sep 17 00:00:00 2001 From: j Date: Thu, 15 Jan 2026 10:35:14 +1300 Subject: [PATCH] Update 2 files --- scrutiny/config/service.env | 6 +++--- scrutiny/start.sh | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scrutiny/config/service.env b/scrutiny/config/service.env index 8316492..deee204 100644 --- a/scrutiny/config/service.env +++ b/scrutiny/config/service.env @@ -14,9 +14,9 @@ WEB_PORT=8080 INFLUXDB_PORT=8086 # Devices to monitor - space-separated list of block devices -# Example: "/dev/sda /dev/sdb /dev/nvme0n1" -# Leave empty to auto-detect (requires --privileged mode) -DEVICES="/dev/sda" +# Can use short names (sda sdb) or full paths (/dev/sda /dev/sdb) +# Example: "sda sdb nvme0n1" +DEVICES="sda" # Set to "true" to run in privileged mode (auto-detects all devices) # Set to "false" to use explicit DEVICES list above diff --git a/scrutiny/start.sh b/scrutiny/start.sh index 2323627..411c30f 100755 --- a/scrutiny/start.sh +++ b/scrutiny/start.sh @@ -17,6 +17,10 @@ if [ "$PRIVILEGED_MODE" = "true" ]; then DEVICE_ARGS="--privileged" else for dev in $DEVICES; do + # Auto-prepend /dev/ if not already a path + if [[ "$dev" != /* ]]; then + dev="/dev/$dev" + fi if [ -e "$dev" ]; then DEVICE_ARGS="$DEVICE_ARGS --device=$dev" else