Commit 4e0eb765 by Daniel Baumann Committed by Daniel Lezcano

Creating missing tty device nodes for squeeze in debian template.

parent 49a630b8
...@@ -28,6 +28,14 @@ configure_debian() ...@@ -28,6 +28,14 @@ configure_debian()
rootfs=$1 rootfs=$1
hostname=$2 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 # configure the inittab
cat <<EOF > $rootfs/etc/inittab cat <<EOF > $rootfs/etc/inittab
id:3:initdefault: id:3:initdefault:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment