lkml.org 
[lkml]   [2000]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Booting into /bin/bash
Date
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.079 / U:0.156 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site