#!/bin/sh
for d in /proc/ide/hd*
do
 if [ `cat $d/media` = 'disk' ] ; then
    hdparm -qm8 -qu1 -qd1 -qW1 /dev/${d##*/}
  fi
  if [ `cat $d/media` = 'cdrom' ] ; then

    hdparm -qu1 -qd1 /dev/${d##*/}
  fi
done
-- 
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
Admin: http://linux.nf  Admin: http://hunley.homeip.net

Meeting, n.:
        An assembly of people coming together to decide what person or
department not represented in the room must solve a problem.
_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to