1
0
mirror of synced 2026-04-24 19:50:09 +00:00

Use intrepid sed script for inittab

This makes t/hook-inittab.t pass for this hook.
This commit is contained in:
Stéphane Jourdois
2010-07-11 13:48:24 +02:00
committed by Stéphane Jourdois
parent 6a66d4f068
commit 66a4a399ab

View File

@@ -30,7 +30,7 @@ logMessage Script $0 starting
rm ${prefix}/etc/init/tty[!1].conf
sed -i -e s/tty1/hvc0/ ${prefix}/etc/init/tty1.conf
mv ${prefix}/etc/init/tty1.conf ${prefix}/etc/init/hvc0.conf
[ -f ${prefix}/etc/inittab ] && sed -i -e 's/^\([2-6].*:respawn*\)/#\1/' -e 's/^T/#\t/' -e 's/tty1$/hvc0/' ${prefix}/etc/inittab
#
# Are we using an alternative serial device?