On Sat, May 20, 2000 at 05:44:15PM +0200, Vitux wrote:
> How do you run this stuff at boot? (yes, newbie here...)
> I get the same kind of errors :((
i wrote an initscript (/etc/init.d/hdparm):
#! /bin/sh
PATH=/sbin:/bin
NAME=hdparm
set -e
case "$1" in
start)
echo -n "Configuring /dev/hda "
/sbin/hdparm -k 1 /dev/hda > /dev/null
/sbin/hdparm -S 0 /dev/hda > /dev/null
echo "Done."
;;
stop)
;;
reload)
;;
restart|force-reload)
echo -n "Configuring /dev/hda "
/sbin/hdparm -k 1 /dev/hda > /dev/null
/sbin/hdparm -S 0 /dev/hda > /dev/null
echo "Done."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
based on /etc/init.d/skeleton
then i run:
update-rc.d -f hdparm start 31 S .
--
Ethan Benson
http://www.alaska.net/~erbenson/
Attachment:
pgpt980aap6jr.pgp
Description: PGP signature