> Not quite okay!!
>
> rc.sysinit ought to work without mounting /usr
>
> but lots of stuff including the hdparm setup in initscripts-4.97-36mdk
> assumes that /usr is mounted
>
> this is bad and needs fixing
>


i don't have 36mdk with me now, but i can dl and take a look. but what seems
to be the pb ? on 28mdk it's like this


i don't think that anyone woudl put hdparm in /usr/sbin ...

# Optimisation of Hard drive.
    if [ -x /sbin/hdparm ];then|| [ -n "$HDPARM" ]; then
    if [ -x /sbin/hdparm ];then
        LIST_HD=$(grep '^hd.:' /var/log/dmesg|\
            grep -ivE
'(CD.*ROM|DVD.*ROM|FLOPPY|TAPE|STATUS)'|cut -d: -f1|sort|u
niq)
        if grep -i nohdparm /proc/cmdline >/dev/null ; then
        if grep -i nohdparm /proc/cmdline >/dev/null ; then
                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





>  - D.
>
> # 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|DVD.*ROM|FLOPPY|TAPE|STATUS)'|cut
> -d: -f1|sort|uniq)
>
> [root@avocado /mdk]# which cut sort uniq
> /usr/bin/cut
> /bin/sort
> /usr/bin/uniq
>
>

Reply via email to