Initial commit

This commit is contained in:
2026-10-15 17:17:16 +07:00
commit f9951daf22
7 changed files with 432 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
set -euo pipefail
dev="${1:-}"
exec /usr/bin/smartctl --json=co -a "/dev/$dev"
+1
View File
@@ -0,0 +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]