diff options
author | zurx <zurx@sigaint.org> | 2015-10-02 01:23:26 +0000 |
---|---|---|
committer | zurx <zurx@sigaint.org> | 2015-10-02 01:23:26 +0000 |
commit | 7c35931c2417e93d8187d8615c9223a119f2b34f (patch) | |
tree | 99afe7fae4d13cdb11663652c37f05fd25b04b07 | |
parent | 6a8e09f715ae3b9f9fd467d203c8b4a88df26d3f (diff) | |
download | hrmpf-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.
-rw-r--r-- | installer.sh.in | 2 |
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 } |