diff options
author | dinoex <dinoex@FreeBSD.org> | 2011-12-02 04:53:31 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2011-12-02 04:53:31 +0800 |
commit | 7a22661a10543ca7b233d5a475d46c9a81249139 (patch) | |
tree | c83775a05a7bc5c3b8033d29f31417bebdd7f611 /sysutils | |
parent | a540ab0d6271a77c8952c1c15335fcfc496633d5 (diff) | |
download | freebsd-ports-graphics-7a22661a10543ca7b233d5a475d46c9a81249139.tar.gz freebsd-ports-graphics-7a22661a10543ca7b233d5a475d46c9a81249139.tar.zst freebsd-ports-graphics-7a22661a10543ca7b233d5a475d46c9a81249139.zip |
- fix handling of cd*
PR: 162383
Submitted by: Christoph Mallon
Approved by: (maintainer timeout)
Feature safe: yes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/smartmontools/Makefile | 2 | ||||
-rw-r--r-- | sysutils/smartmontools/files/smart.in | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile index c92939322cf..f7095085536 100644 --- a/sysutils/smartmontools/Makefile +++ b/sysutils/smartmontools/Makefile @@ -7,7 +7,7 @@ PORTNAME= smartmontools PORTVERSION= 5.42 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF diff --git a/sysutils/smartmontools/files/smart.in b/sysutils/smartmontools/files/smart.in index f046edffc88..0fcf76a5eba 100644 --- a/sysutils/smartmontools/files/smart.in +++ b/sysutils/smartmontools/files/smart.in @@ -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=`sysctl -n kern.disks` + daily_status_smart_devices="$(sysctl -n kern.disks | sed -E 's/[[:<:]]cd[0-9]+//g')" ;; *) ;; esac @@ -42,7 +42,6 @@ case "${daily_status_smart_enable}" in device="${device#/dev/}" devflags="" case ${device} in - cd*) ;; tw[ae]*) devflags="-d3ware,${device##tw[ae][0-9]*,}" device="/dev/${device%,[0-9]*}" ;; |