#!/bin/sh
#
# Tuneide: tweak all ide drives better performance
#
HDPARM=/usr/bin/hdparm

case "$1" in
start)
    PREFIX="Tuning"
    for d in a b c d e f g h; do
	if hdparm -m16 -a8 -u1 -d1 /dev/hd$d >/dev/null; then
	    echo -n "$PREFIX hd$d"
	    PREFIX=","
	fi
    done
    test "$PREFIX" = "," && echo "."
    ;;
info)
    echo "Tune IDE hard drives"
    ;;
stop)
    ;;
*)
    echo "usage: $0 {start|stop}"
    ;;
esac
