Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch
[linux_from_scratch.git] / bootscripts / contrib / new-boot-0.2 / sbin / init.d / runlevel.2 / hdparm
blob17ddcc02b90b4467f8da1959c624a28ae878a934
1 #! /bin/sh
3 # speed up /dev/hda
6 #locate and source functions script
7 source `PATH=$INIT_D/:/sbin/init.d:/etc/init.d:/etc/rc.d type -p functions`
9 case "$1" in
10 start)
11 echo Speeding up /dev/hda...
12 #The following is commented out because running hdparm with the
13 #wrong parameters can cause data loss. Do not activate the following
14 #line blindly. Read the manpage and change the settings to match your
15 #hardware
16 #hdparm -q -c1 -q -u1 -q -d1 -q -m16 -q -X66 /dev/hda
17 #up_evaluate_retval || exit_if_any_error
18 $CURS_UP ; print_status skipped
20 stop)
23 exit 1
25 esac
27 exit 0