Todd has also given me permission to reproduce the following private e-mail
which started before I became aware of this newsgroup thread (thanks,
Thanks for the pointer about the SAFEMODE variable - I’ve already
incorporated that into the next version of rc.local so this doesn’t
happen again. I think we’ve got a solution to our problem by
artificially making the program loop before it gets to the part that
cause it to hang. Anyway, thanks for all your help!
From: David Bacon [mailto:firstname.lastname@example.org]
Sent: Thursday, March 27, 2003 12:42 PM
Subject: RE: Rc.local
If you’re looking for a general solution, I note that in
/etc/rc.d/rc.sysinit, there is one place where there is a test for the
environment variable SAFEMODE being set. You could use that same
variable to decide whether or not to look for rc.local (I mean modify
rc.sysinit to do that). Alternatively, you could just have your
rc.local immediately exit whenever it saw `! -z “$SAFEMODE”’.
Is booting from floppy also an option, by the way?
Xiaodan Tang <email@example.com> wrote in message
Can you drop into “debug shell” ?
If you have the access to the console, you can press “SPACE” during
boot, and enable “debug shell”. Let the boot continue untile you got
a prompt, type “exit”, you will then got a shell prompt in second time.
You now have all your binaries in place (/bin, /sbin, …), just no PATH.
You can do a “/bin/mv /etc/rc.d/rc.local /etc/rc.d/rc.local.o” to get rid
of the problem rc.local
You might want to keep a safe /.altboot if possiable.
Todd Jochem <> firstname.lastname@example.org> > wrote in message
news:b5vc8v$153$> email@example.com> …
Unfortunately, this is in a remote, embedded system. >
“Chris McKillop” <> firstname.lastname@example.org> > wrote in message
news:b5vcb5$97o$> email@example.com> …
Todd Jochem <> firstname.lastname@example.org> > wrote:
I’m in a jam - I’ve got a program that is started from rc.local.
Unfortunately, I broke that program and as a result, the machine
kicker is that I can’t log in via the console or telnet to fic the
I’ve got about 5 seconds and I can’t type that fast! So, is there a
by-pass rc.local. I can’t seem to figure out how to do it from the
Safe Mode options. Thanks,
One option, if you have a CDROM in the system, is to boot from the
CD and pick Run From CDROM. Your disk filesystems will all show up in
and you can edit/delete/move your rc.local.
Chris McKillop <> email@example.com> > “The faster I go, the behinder I
Software Engineer, QSSL – Lewis Carroll –