[1.16.2] Can't stop "ping" with CTRL+c

Rich Felker dalias at aerifal.cx
Mon Jul 4 17:03:14 UTC 2011


On Mon, Jul 04, 2011 at 06:55:42PM +0200, Gilles wrote:
> On Mon, 04 Jul 2011 10:28:39 -0400, Chuck Meade
> <chuckmeade at mindspring.com> wrote:
> >  http://www.busybox.net/FAQ.html#job_control
> 
> Thanks for the tip. Busybox's inittab doesn't mention /dev/console:
> 
> ===============
> # Startup the system
> console::sysinit:/bin/sh /etc/rc
> 
> # Set up a console shell
> console::respawn:/bin/login -f root
> 
> # Misc services
> null::respawn:/sbin/inetd -f
> #null::respawn:/sbin/watchdog -F -T 20 -t 10 /dev/watchdog
> 
> # Logging junk
> null::sysinit:/bin/touch /var/log/messages
> null::respawn:/sbin/syslogd -n -m 0
> null::respawn:/sbin/klogd -n
> 
> # Stuff to do for the 3-finger salute
> ::ctrlaltdel:/sbin/reboot
> 
> # Stuff to do before rebooting
> null::shutdown:/bin/killall klogd
> null::shutdown:/bin/killall syslogd
> null::shutdown:/bin/umount -a -r
> ===============
> 
> Should I edit inittab or /etc/rc so that it includes "exec setsid sh
> -c 'exec sh </dev/tty1 >/dev/tty1 2>&1'"?

No, you should just remove all references to console in inittab and
replace them with tty1 or whatever the proper tty device for the
serial console is. /dev/console is not a tty and not suitable for
logins.

Rich


More information about the busybox mailing list