SOURCES: hdparm.init - accept other block devices on Linux 2.6.x (...
qboosh
qboosh at pld-linux.org
Sun Jan 20 23:20:42 CET 2008
Author: qboosh Date: Sun Jan 20 22:20:42 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- accept other block devices on Linux 2.6.x (ATA/SATA through libata in particular), not only old ide
---- Files affected:
SOURCES:
hdparm.init (1.18 -> 1.19)
---- Diffs:
================================================================
Index: SOURCES/hdparm.init
diff -u SOURCES/hdparm.init:1.18 SOURCES/hdparm.init:1.19
--- SOURCES/hdparm.init:1.18 Sun Jan 28 13:19:09 2007
+++ SOURCES/hdparm.init Sun Jan 20 23:20:37 2008
@@ -15,7 +15,7 @@
for var in $blockdevs; do
drive=${var#HDPARM_}
- if [ -L "/proc/ide/${drive}" ]; then
+ if [ -L "/proc/ide/${drive}" -o -d "/sys/block/${drive}" ]; then
eval PARAMS=\$$var
if [ -n "${PARAMS}" ]; then
show "Setting parameters for drive %s (%s)" "$drive" "$PARAMS"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/hdparm.init?r1=1.18&r2=1.19&f=u
More information about the pld-cvs-commit
mailing list