From 4e67914aee75a19dbc13bd10f3e67b032c28f7c1 Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 30 Apr 2006 11:57:06 +0000 Subject: [PATCH] 2006-04-30 11:57:06 by steve Applied simplification patch from Tom Mornini. --- etc/hook.d/30-fix-inittab | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/etc/hook.d/30-fix-inittab b/etc/hook.d/30-fix-inittab index b0ecb93..0ca3587 100755 --- a/etc/hook.d/30-fix-inittab +++ b/etc/hook.d/30-fix-inittab @@ -9,10 +9,4 @@ # -- # http://www.steve.org.uk/ -prefix=$1 - -cat /etc/inittab | \ - sed "s/tty[0-9]$/console/g" | \ - sed "s/^\([2-6].*:respawn*\)/#\1/" \ - > ${prefix}/etc/inittab - +sed -i -e 's/tty[0-9]$/console/g' -e 's/^\([2-6].*:respawn*\)/#\1/' $1/etc/inittab