"Alexandre Boeglin" <[EMAIL PROTECTED]> writes:
> Hello, j'ai cherch� sur les docs du cd, mais je n'ai pas trouv� � quoi sert
> l'option "optimisation pour les disque dur" de l'install de la mdk 7.
>
> qui peut me dire en quoi elle consiste?
/etc/rc.d/init.d/mandrake_everytime
# Optimisation of Hard drive.
if grep -qi opti /proc/cmdline || [ -n "$HDPARM" ]; then
if [ -x /sbin/hdparm ];then
LIST_HD=$(grep '^hd.:' /var/log/dmesg|\
grep -ivE '(CD.*ROM|FLOPPY|TAPE|STATUS)'|cut -d: -f1|sort|uniq)
if grep -i nohdparm /proc/cmdline >/dev/null ; then
action "Hard Drive optimisations disabled" \
echo ""
else
for i in $LIST_HD;do
action "Starting Hard Drive optimisations for $i" \
hdparm -q -c1 -q -A1 -q -m16 -q -d1 /dev/$i
done
fi
fi
fi
--
MandrakeSoft http://www.mandrakesoft.com/
--Chmouel