diff options
author | dougb <dougb@FreeBSD.org> | 2002-06-16 20:59:16 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2002-06-16 20:59:16 +0000 |
commit | 9acb83325d7fe3f0a39bdd678094a1eea6552289 (patch) | |
tree | a17b0cd00a5a32a6bd274f99a45b60ab734db2d6 /etc/rc.syscons | |
parent | bc70083f07c892b75a47690a1ab68930321a910d (diff) | |
download | FreeBSD-src-9acb83325d7fe3f0a39bdd678094a1eea6552289.zip FreeBSD-src-9acb83325d7fe3f0a39bdd678094a1eea6552289.tar.gz |
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 <dirkx@covalent.net>
Diffstat (limited to 'etc/rc.syscons')
-rw-r--r-- | etc/rc.syscons | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.syscons b/etc/rc.syscons index faae7d4..3a6ed80 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 |