aboutsummaryrefslogtreecommitdiff
path: root/sysutils/smartmontools
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/smartmontools')
-rw-r--r--sysutils/smartmontools/Makefile1
-rw-r--r--sysutils/smartmontools/files/smart.in2
2 files changed, 2 insertions, 1 deletions
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile
index bd46727f79db..1470e09fd21a 100644
--- a/sysutils/smartmontools/Makefile
+++ b/sysutils/smartmontools/Makefile
@@ -7,6 +7,7 @@
PORTNAME= smartmontools
PORTVERSION= 5.39
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF
diff --git a/sysutils/smartmontools/files/smart.in b/sysutils/smartmontools/files/smart.in
index d4ba696d5212..e63b094be5f7 100644
--- a/sysutils/smartmontools/files/smart.in
+++ b/sysutils/smartmontools/files/smart.in
@@ -41,7 +41,7 @@ case "${daily_status_smart_enable}" in
echo
echo "Checking health of ${device}:"
echo
- ${smartctl} ${daily_status_smartctl_flags} ${device} > "${tmpfile}"
+ ${smartctl} ${daily_status_smartctl_flags} /dev/${device} > "${tmpfile}"
status=$?
if [ $((status & 3)) -ne 0 ]; then
rc=2