mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Fix questionable correctness of autodetect procedure and switch to using
kern.disks in place of ls /dev/da*[0-9]. PR: ports/135213 Submitted by: Dmitry Morozovsky <marck@freebsd.org> (maintainer)
This commit is contained in:
parent
8c42a4abcc
commit
eed1fb4787
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235132
4 changed files with 6 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= smartmontools
|
||||
PORTVERSION= 5.38
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
|
|
@ -16,7 +16,7 @@ smartctl=%%PREFIX%%/sbin/smartctl
|
|||
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 @@ trap "rm -f ${tmpfile}" 0 1 3 15
|
|||
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
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= smartmontools
|
||||
PORTVERSION= 5.38
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
|
|
@ -16,7 +16,7 @@ smartctl=%%PREFIX%%/sbin/smartctl
|
|||
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 @@ trap "rm -f ${tmpfile}" 0 1 3 15
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue