Creating missing tty device nodes for squeeze in debian template.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
Daniel Baumann 2010-12-28 21:32:51 +01:00 committed by Daniel Lezcano
parent 49a630b8f3
commit 4e0eb76555

View File

@ -28,6 +28,14 @@ configure_debian()
rootfs=$1
hostname=$2
# squeeze only has /dev/tty and /dev/tty0 by default,
# therefore creating missing device nodes for tty1-4.
for tty in $(seq 1 4); do
if [ ! -e $rootfs/dev/tty$tty ]; then
mknod $rootfs/dev/tty$tty c 4 $tty
fi
done
# configure the inittab
cat <<EOF > $rootfs/etc/inittab
id:3:initdefault: