l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 20: Web Application Hacking: How to Make and Break Security on the Web
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2001 Dec 30 17:06

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] boot up commands in debian?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] boot up commands in debian?



begin: ME <dugan@passwall.com> 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


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!