begin: ME <[EMAIL PROTECTED]> quote
> On Thu, 28 Jun 2001, Foo Lim wrote:
> > What's the debian way of executing boot-up commands that don't necessarily
> > need a 'service' script (ie gpm start|stop|etc.)? I'm thinking more in
> > terms of an hdparm command that needs to be executed once. In RH 6.2,
> > it's in rc.local, but I couldn't find one in debian 2.2r3. RH 6.2
> > actually makes a S99local symlink to rc.local in rc3.d, so I was thinking
> > of doing that but putting it in rcS.d . I've read the debian-policy
> > documentation, but maybe I was skimming too fast.
foo, when you want something to execute at boot, but don't want to write a
full-blown boot-up script, any script located in /etc/rc.boot will get
executed at boot.
# /etc/rc.boot/
hdparm* runme*
here is what one of these scripts looks like:
# cat /etc/rc.boot/runme
#!/bin/sh
# old:
# reg00: base=0x00000000 ( 0MB), size= 128MB: write-back, count=1
# reg01: base=0xe8000000 (3712MB), size= 16MB: write-combining, count=1
#
# new:
# reg00: base=0x00000000 ( 0MB), size= 128MB: write-back, count=1
# reg01: base=0xe8000000 (3712MB), size= 64MB: write-combining, count=1
#
# 3Dfx Voodoo5 rev 1, Mem @ 0xe0000000/26, 0xe8000000/27, I/O @ 0x9000/8
# 3Dfx Voodoo5 rev 1, Mem @ 0xf8000000/27, 0xf8000000/27, I/O @ 0xfffffe00/8
echo -n "Setting up the MTRR..."
echo "base=0xe8000000 size=0x4000000 type=write-combining" >| /proc/mtrr
echo " done"
as you can see, not a full-blown startup script. just something i want to
execute when the computer boots.
pete