diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2003-01-16 03:11:41 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2003-01-16 03:11:41 +0000 |
commit | 10c32f53596120eaca958b7500430f9c164a4b0f (patch) | |
tree | d288ef1d2fb25005f439a59789bc73709d7bb2e1 /rc.d | |
parent | 2853df9c3d57db26572594c627ce53b4ee6d7113 (diff) | |
download | initscripts-10c32f53596120eaca958b7500430f9c164a4b0f.tar initscripts-10c32f53596120eaca958b7500430f9c164a4b0f.tar.gz initscripts-10c32f53596120eaca958b7500430f9c164a4b0f.tar.bz2 initscripts-10c32f53596120eaca958b7500430f9c164a4b0f.tar.xz initscripts-10c32f53596120eaca958b7500430f9c164a4b0f.zip |
* rc.d/rc.sysinit:
discard anything after the name of the tty when looking for mingetty
invocations in /etc/inittab, avoids barfing on systems where
'mingetty /dev/ttyFOO --noclear' is in use (like mine)
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 06f6540b..dffc1e74 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -35,7 +35,7 @@ if [ "$BOOTUP" = "graphical" ]; then fi if [ "`/sbin/consoletype`" = "vt" -a -x /sbin/setsysfont ]; then - for i in `LC_ALL=C grep '^[0-9]*.*respawn:/sbin/mingetty' /etc/inittab | sed 's/^.* tty//'`; do + for i in `LC_ALL=C grep '^[0-9]*.*respawn:/sbin/mingetty' /etc/inittab | sed 's/^.* tty\([0-9][0-9]*\).*/\1/g'`; do > /dev/tty$i done echo -n "Setting default font ($SYSFONT): " |