[PLUG] boot shell question.
patrick.n.fitzgerald.1
pfitzge1@purdue.edu
Mon, 16 Nov 1998 10:15:08 -0500 (EST)
> > Using Debian 2.0 how would I boot into a root shell, and
> > execute a program which requires user interaction? I have
> > tried adding my program into rc.boot, I have tried adding
> > /bin/bash to /etc/inittab under a console, I have tried to
> > figure out agetty so that it does not prompt for a username
> > and inside yields a root bash, but all of no luck.
This is an old trick I used to use to hack machines I had console access
to... at the lilo prompt, (assuming you use a boot image called "linux")
type something like "linux init=/bin/sh".
It'll boot, and with no questions asked drop you immediately to a root
shell. Presumably, you could do the same with
"/usr/local/bin/mymp3player". And, I would imagine you could also do the
same with the lilo.conf, so it doesn't need user intervention at boot
time.
One caveat: when you do this, the whole rc.d process is skipped. This
means that you get no network daemons, no fsck of the file system, and no
remounting the fs in read-write mode. So it might be a good idea to do
some of that in the script called by the kernel instead of init. Oh, and I
don't think it will mount swap, either. Probably not terribly important.
> >
> > This is the last thing I have yet to figure out for my
> > mobile mp3 server. It's simply a AMD K5-100 (40% cpu decoding
> > mp3s), motherboard, 3c509, and a SoundBlaster 16 stuffed
> > in a cute little pizza box case (think netwinder, etc).
Sounds like a neat idea. Personally, I'm trying to stay away from MP3's
because of all the pesky patent litigation going around them right now.
Hope this helps,
Patrick N. Fitzgerald
--
Try 'stty 0' -- it works better.
--
This message is from the Purdue Linux Users' Group (PLUG) mailing list.
Send mail server commands to <plug-request@csociety.purdue.edu>.