[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Start up?



On Sat, Jan 20, 2001 at 09:16:56PM -0600, Kent West wrote:
> Joshua Kruck wrote:
> 
> > hello,
> > Is there come kind of script that run when the machine boots that i can
> > put commands into? I want to run sound on when the machine boots, i
> > would also like to mount some samba commands. Can someone point me to an
> > easy way to do this?
> > 
> 
> Wow; this is a very broad question, and could have 30 or 40 answers to 
> it. You may have to give us more info about what you mean by "run sound 
> on" and if your samba mounts are to be for all users or just a specific 
> user.

Assuming that this is really a simpler question that those who have replied so far assume that it is (heh; simple), this is what I do:

In /etc/init.d/bootmisc.sh, I have inserted:

--- bootmisc.sh Sat Jan 20 21:37:53 2001
+++ bootmisc.sh-pugelist        Sat Jan 20 21:38:45 2001
@@ -80,6 +80,19 @@
 fi
 
 #
+# Crank up the disks...
+#
+/sbin/hdparm -c1 -d1 -k1 /dev/hda
+/sbin/hdparm -c1 -d1 -k1 /dev/hdc
+echo ""
+
+#
+# Set the clock...
+#
+/usr/sbin/rdate -s spidermonkey.helixcode.com
+/sbin/hwclock --systohc
+
+#
 # Save kernel messages in /var/log/dmesg
 #
 dmesg > /var/log/dmesg

What this does is use hdparm to force 32-bit I/O, DMA, and keepsettings, and then sync my clock to the one at helixcode now (Ximien?).  This script is run in all inittab runlevels (probably not the best idea in the world), but it works for me.  Maybe this can work for you, too.

-- 
-=|JP|=-    "This space intentionally left blank."
Jon Pennington          | Debian 2.4                 -o)
dren@penguinpowered.com | Auto Enthusiast            /\\
Kansas City, MO, USA    | Proud Husband and Father  _\_V



Reply to: