Index: Makefile =================================================================== RCS file: /home/ncvs/ports/sysutils/smartmontools/Makefile,v retrieving revision 1.39 diff -u -r1.39 Makefile --- Makefile 29 May 2009 12:13:26 -0000 1.39 +++ Makefile 3 Jun 2009 14:04:38 -0000 @@ -7,7 +7,7 @@ PORTNAME= smartmontools PORTVERSION= 5.38 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} Index: files/smart.in =================================================================== RCS file: /home/ncvs/ports/sysutils/smartmontools/files/smart.in,v retrieving revision 1.4 diff -u -r1.4 smart.in --- files/smart.in 29 May 2009 12:13:26 -0000 1.4 +++ files/smart.in 3 Jun 2009 14:04:38 -0000 @@ -16,7 +16,7 @@ case "${daily_status_smart_devices}" in # XXX AUTO mode selects only regular ad/da disks [Aa][Uu][Tt][Oo]) - daily_status_smart_devices=`ls /dev/da*[0-9] /dev/ad*[0-9] 2>/dev/null` + daily_status_smart_devices=`sysctl -n kern.disks` ;; *) ;; esac @@ -35,6 +35,7 @@ rc=0 case "${daily_status_smart_enable}" in [Yy][Ee][Ss]) + cd /dev for device in ${daily_status_smart_devices}; do if [ -e ${device} ]; then echo