Re: Booting into /bin/bash

From: Miquel van Smoorenburg (miquels@cistron.nl)
Date: Mon Sep 11 2000 - 17:16:38 EST


In article <Pine.LNX.3.95.1000911174116.193A-200000@chaos.analogic.com>,
Richard B. Johnson <root@chaos.analogic.com> wrote:
>Whmm. I have a shell-script that makes a RAM-Disk bootable "Rescue Disk".
>It allows one to boot from two floppies and repair stuff, even execute
>vi, fdisk, mke2fs, tar, tar-gz, etc. Just about everything one would
>need (even modules) to rescue a system.
>
>However, ^C does not stop anything. No signal gets sent to anybody.
>I don't want to make it too large because it won't fit on a floppy
>if I do.

That means you don't have a controlling tty.

Try opening /dev/tty1 instead of /dev/console. Something like this
should do it:

#! /bin/bash

# Get a real controlling tty instead of /dev/console
exec 0<>/dev/tty1 1>&0 2>&0

Mike.

-- 
Deadlock, n.:
	Deceased rastaman.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 15 2000 - 21:00:16 EST