From e5f35c947b752d320d8f034f2eb9cdf7580e8ba6 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Sun, 16 Jun 2002 20:59:16 +0000 Subject: [PATCH] Try handling lack of syscons (for diskless boot, or other) by testing for the presence of /dev/ttyv0. PR: misc/39351 Submitted by: Dirk-Willem van Gulik --- etc/rc.syscons | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/rc.syscons b/etc/rc.syscons index faae7d4c0e82..3a6ed8019cd4 100644 --- a/etc/rc.syscons +++ b/etc/rc.syscons @@ -33,6 +33,12 @@ kbddev=/dev/ttyv0 viddev=/dev/ttyv0 +# Handle diskless boots, and other situations where syscons is not present +# +if [ ! -c "${kbddev}" ]; then + exit 0 +fi + echo -n 'Configuring syscons:' # keymap