From 59eaa22a4b4886f78552bab86a9c4ac8da39f4ca Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 17 Aug 2006 12:30:16 +0000 Subject: [PATCH] 2006-08-17 12:30:11 by steve Avoid changing console types to "console" so that job control remains available. --- hooks/centos4/30-fix-inittab | 9 ++++----- hooks/debian/30-fix-inittab | 9 ++++----- hooks/fedora/30-fix-inittab | 9 ++++----- hooks/gentoo/30-fix-inittab | 9 ++++----- hooks/ubuntu/30-fix-inittab | 9 ++++----- 5 files changed, 20 insertions(+), 25 deletions(-) diff --git a/hooks/centos4/30-fix-inittab b/hooks/centos4/30-fix-inittab index 9a3d792..e822819 100755 --- a/hooks/centos4/30-fix-inittab +++ b/hooks/centos4/30-fix-inittab @@ -1,9 +1,8 @@ #!/bin/sh # -# This script does two things: -# -# 1. Sets the console type for the first terminal to 'console'. -# 2. Comments out all virtual terminals which aren't on the first console. +# This script comments out all virtual terminals which aren't on the +# first console - that must remain so that 'xm console ...' works +# correctly. # # Steve # -- @@ -32,7 +31,7 @@ logMessage Script $0 starting # # Do the transformation. # -sed -i -e 's/tty[0-9]$/console/g' -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab +sed -i -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab # diff --git a/hooks/debian/30-fix-inittab b/hooks/debian/30-fix-inittab index 9a3d792..e822819 100755 --- a/hooks/debian/30-fix-inittab +++ b/hooks/debian/30-fix-inittab @@ -1,9 +1,8 @@ #!/bin/sh # -# This script does two things: -# -# 1. Sets the console type for the first terminal to 'console'. -# 2. Comments out all virtual terminals which aren't on the first console. +# This script comments out all virtual terminals which aren't on the +# first console - that must remain so that 'xm console ...' works +# correctly. # # Steve # -- @@ -32,7 +31,7 @@ logMessage Script $0 starting # # Do the transformation. # -sed -i -e 's/tty[0-9]$/console/g' -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab +sed -i -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab # diff --git a/hooks/fedora/30-fix-inittab b/hooks/fedora/30-fix-inittab index 9a3d792..e822819 100755 --- a/hooks/fedora/30-fix-inittab +++ b/hooks/fedora/30-fix-inittab @@ -1,9 +1,8 @@ #!/bin/sh # -# This script does two things: -# -# 1. Sets the console type for the first terminal to 'console'. -# 2. Comments out all virtual terminals which aren't on the first console. +# This script comments out all virtual terminals which aren't on the +# first console - that must remain so that 'xm console ...' works +# correctly. # # Steve # -- @@ -32,7 +31,7 @@ logMessage Script $0 starting # # Do the transformation. # -sed -i -e 's/tty[0-9]$/console/g' -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab +sed -i -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab # diff --git a/hooks/gentoo/30-fix-inittab b/hooks/gentoo/30-fix-inittab index 9a3d792..e822819 100755 --- a/hooks/gentoo/30-fix-inittab +++ b/hooks/gentoo/30-fix-inittab @@ -1,9 +1,8 @@ #!/bin/sh # -# This script does two things: -# -# 1. Sets the console type for the first terminal to 'console'. -# 2. Comments out all virtual terminals which aren't on the first console. +# This script comments out all virtual terminals which aren't on the +# first console - that must remain so that 'xm console ...' works +# correctly. # # Steve # -- @@ -32,7 +31,7 @@ logMessage Script $0 starting # # Do the transformation. # -sed -i -e 's/tty[0-9]$/console/g' -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab +sed -i -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab # diff --git a/hooks/ubuntu/30-fix-inittab b/hooks/ubuntu/30-fix-inittab index 9a3d792..e822819 100755 --- a/hooks/ubuntu/30-fix-inittab +++ b/hooks/ubuntu/30-fix-inittab @@ -1,9 +1,8 @@ #!/bin/sh # -# This script does two things: -# -# 1. Sets the console type for the first terminal to 'console'. -# 2. Comments out all virtual terminals which aren't on the first console. +# This script comments out all virtual terminals which aren't on the +# first console - that must remain so that 'xm console ...' works +# correctly. # # Steve # -- @@ -32,7 +31,7 @@ logMessage Script $0 starting # # Do the transformation. # -sed -i -e 's/tty[0-9]$/console/g' -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab +sed -i -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' ${prefix}/etc/inittab #