# hdparm 6.6
# ==========
# Slackware 9.0 and 9.1's 'hdparm' package includes version 5.3, 10.0's
# includes 5.5, 10.1's includes 5.8, and 10.2's includes 6.1
cd
test -f installed/hdparm-6.6.tar.gz && mv installed/hdparm-6.6.tar.gz .
test ! -f hdparm-6.6.tar.gz &&
wget http://download.sf.net/hdparm/hdparm-6.6.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "hdparm-*" -exec rm -r {} \;
tar xzvf ~/hdparm-6.6.tar.gz
cd hdparm-6.6
test $UID = 0 && chown -R root:root .
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg hdparm
make install
strip /sbin/hdparm
ln -sf /sbin/hdparm /usr/sbin/hdparm
# Be aware that Slack's hdparm package had the hdparm binary in /usr/sbin,
# but we created a symlink there to cover that path if you have it set in
# various scripts. The actual binary is /sbin/hdparm.
# The standard generic suggestion to improve IDE HD speed is something like
# this: hdparm -qm8 -qu1 -qc1 -qd1 /dev/hda If you're going to try this
# or another commandline, definitely read 'man hdparm' first.
# If you ever want to uninstall hdparm, this should do it:
su -c "rm -f /sbin/hdparm /usr/sbin/hdparm /usr/man/man8/hdparm.8"
find ~/src -maxdepth 1 -type d -name "hdparm-*" -exec rm -r {} \;
rm -f ~/installed/hdparm-*.tar.*