Commit 27743322 authored by Andreas Henriksson's avatar Andreas Henriksson

kbd.init: don't assume /etc/inittab always exists

This is apparently not the case anymore in a standard Jessie install
(unless/until sysvinit-core is installed, replacing systemd as default
init). The previous check for systemd should catch us before getting
here, but better safe than sorry?!
parent d1e17757
......@@ -133,9 +133,11 @@ setup ()
N_CONSOLES=6
fi
LIST_CONSOLES=`seq 1 "$N_CONSOLES"`
else
elif [ -f /etc/inittab ]; then
# traditional SysV init
LIST_CONSOLES=`sed -ne '/^[ \t]*#/d; /tty[0-9]\+/ s/.*tty\([0-9]\+\).*/\1/ p' /etc/inittab`
else
LIST_CONSOLES=`seq 1 6`
fi
# Global default font+map
......
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