From 7c35931c2417e93d8187d8615c9223a119f2b34f Mon Sep 17 00:00:00 2001 From: zurx Date: Fri, 2 Oct 2015 01:23:26 +0000 Subject: 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. --- installer.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer.sh.in') 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 } -- cgit 1.4.1