Explorar o código

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.
zurx %!s(int64=9) %!d(string=hai) anos
pai
achega
7c35931c24
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      installer.sh.in

+ 1 - 1
installer.sh.in

@@ -299,7 +299,7 @@ set_keymap() {
     if [ -f /etc/vconsole.conf ]; then
     if [ -f /etc/vconsole.conf ]; then
         sed -i -e "s|KEYMAP=.*|KEYMAP=$KEYMAP|g" $TARGETDIR/etc/vconsole.conf
         sed -i -e "s|KEYMAP=.*|KEYMAP=$KEYMAP|g" $TARGETDIR/etc/vconsole.conf
     else
     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
     fi
 }
 }