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 #