Improve organization & SAS support

This commit is contained in:
2026-10-15 21:07:13 +07:00
parent f9951daf22
commit 14598af614
6 changed files with 249 additions and 189 deletions
-8
View File
@@ -1,8 +0,0 @@
#!/bin/bash
set -euo pipefail
dev="${1:-}"
exec /usr/bin/smartctl --json=co -a "/dev/$dev"
+1 -1
View File
@@ -1 +1 @@
linesofcodes ALL=(root) NOPASSWD: /usr/local/sbin/smartctl-proxy.sh sd[a-z], /usr/local/sbin/smartctl-proxy.sh nvme[0-9]n[0-9]
linesofcodes ALL=(root) NOPASSWD: /usr/bin/smartctl