about summary refs log tree commit diff
path: root/installer.sh.in
diff options
context:
space:
mode:
authorzurx <zurx@sigaint.org>2015-10-02 01:23:26 +0000
committerzurx <zurx@sigaint.org>2015-10-02 01:23:26 +0000
commit7c35931c2417e93d8187d8615c9223a119f2b34f (patch)
tree99afe7fae4d13cdb11663652c37f05fd25b04b07 /installer.sh.in
parent6a8e09f715ae3b9f9fd467d203c8b4a88df26d3f (diff)
downloadhrmpf-7c35931c2417e93d8187d8615c9223a119f2b34f.tar.gz
hrmpf-7c35931c2417e93d8187d8615c9223a119f2b34f.tar.xz
hrmpf-7c35931c2417e93d8187d8615c9223a119f2b34f.zip
fix set_keymap rc.conf
By default /etc/rc.conf seems to have KEYMAP commented out which means any key mapping set during the install will be ignored. This commit makes the installer remove the hash (#) prefix, if present.
Diffstat (limited to 'installer.sh.in')
-rw-r--r--installer.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/installer.sh.in b/installer.sh.in
index 23c7583..83f3d8c 100644
--- a/installer.sh.in
+++ b/installer.sh.in
@@ -299,7 +299,7 @@ set_keymap() {
     if [ -f /etc/vconsole.conf ]; then
         sed -i -e "s|KEYMAP=.*|KEYMAP=$KEYMAP|g" $TARGETDIR/etc/vconsole.conf
     else
-        sed -i -e "s|KEYMAP=.*|KEYMAP=$KEYMAP|g" $TARGETDIR/etc/rc.conf
+        sed -i -e "s|#\?KEYMAP=.*|KEYMAP=$KEYMAP|g" $TARGETDIR/etc/rc.conf
     fi
 }