summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-23 20:05:09 +0200
committerKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-24 13:52:58 +0200
commitfa8d09e1fb7057332eac795aa346763c11476b4b (patch)
tree361e1441566acd6e51a38181e81761e0563f870b
parentd19b31f04339ed50061e4c7d21288491f2f9ebd6 (diff)
Simplify keyboard map loading by using loadkeys autodetection
-rwxr-xr-xrc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 13d789f..5dc3da6 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -286,7 +286,6 @@ if [[ ${LOCALE,,} =~ utf ]]; then
done
echo 1 > /sys/module/vt/parameters/default_utf8
stat_done
- [[ $KEYMAP ]] && status "Loading Keyboard Map: $KEYMAP" loadkeys -q -u $KEYMAP
else
stat_busy "Setting Consoles to legacy mode"
# make non-UTF-8 consoles work on 2.6.24 and newer kernels
@@ -296,8 +295,9 @@ else
done
echo 0 > /sys/module/vt/parameters/default_utf8
stat_done
- [[ $KEYMAP ]] && status "Loading Keyboard Map: $KEYMAP" loadkeys -q $KEYMAP
fi
+[[ $KEYMAP ]] && \
+ status "Loading Keyboard Map: $KEYMAP" loadkeys -q $KEYMAP
# Set console font if required
set_consolefont