aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>1999-10-05 12:57:42 +0000
committerJakub Jelinek <jakub@redhat.com>1999-10-05 12:57:42 +0000
commit24bb6279b1b9fd248d95732d99ef01dfbf00f3b1 (patch)
treeface2ae0648d61e9caf50f1609ba2b76cc6b6ad3
parenta7a7ec544cbbe106de987a178293a522cf9ff90f (diff)
downloadinitscripts-24bb6279b1b9fd248d95732d99ef01dfbf00f3b1.tar
initscripts-24bb6279b1b9fd248d95732d99ef01dfbf00f3b1.tar.gz
initscripts-24bb6279b1b9fd248d95732d99ef01dfbf00f3b1.tar.bz2
initscripts-24bb6279b1b9fd248d95732d99ef01dfbf00f3b1.tar.xz
initscripts-24bb6279b1b9fd248d95732d99ef01dfbf00f3b1.zip
If /etc/sysconfig/keyboard is not present (on serial console), don't complain.
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index b2d2abfa..55231a04 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -112,7 +112,9 @@ KEYMAP=
if [ -f /etc/sysconfig/console/default.kmap ]; then
KEYMAP=/etc/sysconfig/console/default.kmap
else
- . /etc/sysconfig/keyboard
+ if [ -f /etc/sysconfig/keyboard ]; then
+ . /etc/sysconfig/keyboard
+ fi
if [ -n "$KEYTABLE" -a -d "/usr/lib/kbd/keymaps" ]; then
KEYMAP=$KEYTABLE
fi