summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2009-10-25 18:40:07 +0000
committerThilo Bangert <bangert@gentoo.org>2009-10-25 18:40:07 +0000
commited927c154b7c580ab47fc5ecb5e072440ee84552 (patch)
tree96ee192c99d3399674efdd65916750f46aef37b2 /app-laptop
parentFix javadoc compilation for bug 289855 (diff)
downloadgentoo-2-ed927c154b7c580ab47fc5ecb5e072440ee84552.tar.gz
gentoo-2-ed927c154b7c580ab47fc5ecb5e072440ee84552.tar.bz2
gentoo-2-ed927c154b7c580ab47fc5ecb5e072440ee84552.zip
check for blockdevice - not file
(Portage version: 2.2_rc46/cvs/Linux i686)
Diffstat (limited to 'app-laptop')
-rw-r--r--app-laptop/hdapsd/ChangeLog5
-rw-r--r--app-laptop/hdapsd/files/hdapsd.init2
2 files changed, 5 insertions, 2 deletions
diff --git a/app-laptop/hdapsd/ChangeLog b/app-laptop/hdapsd/ChangeLog
index 59eeb3b2e386..9fb1b51e1b23 100644
--- a/app-laptop/hdapsd/ChangeLog
+++ b/app-laptop/hdapsd/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-laptop/hdapsd
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.13 2009/10/16 11:57:42 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.14 2009/10/25 18:40:07 bangert Exp $
+
+ 25 Oct 2009; Thilo Bangert <bangert@gentoo.org> files/hdapsd.init:
+ check for blockdevice - not file
16 Oct 2009; Thilo Bangert <bangert@gentoo.org> files/hdapsd.init:
warn if non-existing hdd has been configured
diff --git a/app-laptop/hdapsd/files/hdapsd.init b/app-laptop/hdapsd/files/hdapsd.init
index a4bb824a35d3..b2bfcaaf6a30 100644
--- a/app-laptop/hdapsd/files/hdapsd.init
+++ b/app-laptop/hdapsd/files/hdapsd.init
@@ -12,7 +12,7 @@ checkconfig() {
return 1
fi
- if [ ! -f /dev/${DISK} ]; then
+ if [ ! -b /dev/${DISK} ]; then
eerror "Could not find disk /dev/${DISK}!"
eerror "Adjust teh DISK setting in /etc/conf.d/hdapsd"
return 1