Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (03fb5e9f8b0798b43c9de2de5d32866babedbb15)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pol Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (03fb5e9f8b0798b43c9de2de5d32866babedbb15)
  • Date: Tue, 30 Oct 2007 15:26:38 -0500

GIT changes to master grimoire by Pol Vinogradov <vin.public AT gmail.com>:

disk/hdparm/HISTORY | 3 +++
disk/hdparm/init.d/hdparm | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit b741dbfcd94453c24cfee69e0129e619bb219db7
Author: Pol Vinogradov <vin.public AT gmail.com>
Commit: Pol Vinogradov <vin.public AT gmail.com>

disk/hdparm:

init.d/hdparm.conf: made it work through sysfs interface

diff --git a/disk/hdparm/HISTORY b/disk/hdparm/HISTORY
index 4500bc5..0bf5259 100644
--- a/disk/hdparm/HISTORY
+++ b/disk/hdparm/HISTORY
@@ -1,3 +1,6 @@
+2007-10-30 Pol Vinogradov <vin.public AT gmail.com>
+ * init.d/hdparm.conf: made it work through sysfs interface
+
2007-10-17 Eric Sandall <sandalle AT sourcemage.org>
* DETAILS: Incremented PATCHLEVEL=2
* init.d/hdparm: Check if a directory exists before cating it
diff --git a/disk/hdparm/init.d/hdparm b/disk/hdparm/init.d/hdparm
index a7a35f2..a37b692 100755
--- a/disk/hdparm/init.d/hdparm
+++ b/disk/hdparm/init.d/hdparm
@@ -20,9 +20,9 @@ start()
# PATA
for drive in hd{a..z}; do
if [[ -b "/dev/$drive" ]]; then
- if [[ -f /proc/ide/$drive/media ]];
+ if [[ -f /sys/block/$drive/device/media ]];
then
- if [[ "$(cat /proc/ide/$drive/media)" ==
"cdrom" ]];
+ if [[ "$(cat /sys/block/$drive/device/media)"
== "cdrom" ]];
then
$PROGRAM $common_params
$pata_cdrom_params $pata_params "/dev/$drive"
else



  • [SM-Commit] GIT changes to master grimoire by Pol Vinogradov (03fb5e9f8b0798b43c9de2de5d32866babedbb15), Pol Vinogradov, 10/30/2007

Archive powered by MHonArc 2.6.24.

Top of Page