installer: added support for /etc/vconsole.conf and /etc/X11/xorg.conf.d/{10-keyboard.conf,20-touchpad.conf}

This commit is contained in:
Silvan Calarco 2011-10-30 16:09:58 +01:00
parent 2d498e88b4
commit 4df882a34e
2 changed files with 5 additions and 1 deletions

View File

@ -1136,6 +1136,9 @@ sed -i "s|\(XKB_LAYOUT=\).*|\1$LAYOUT|" /etc/sysconfig/keyboard
sed -i "s|\(XKB_MODEL=\).*|\1$MODEL|" /etc/sysconfig/keyboard
sed -i "s|\(\"XkbLayout\"\).*|\1 \"$LAYOUT\"|" /etc/X11/xorg.conf
sed -i "s|\(\"XkbModel\"\).*|\1 \"$MODEL\"|" /etc/X11/xorg.conf
sed -i "s|\(\"XkbLayout\"\).*|\1 \"$LAYOUT\"|" /etc/X11/xorg.conf.d/10-keyboard.conf
sed -i "s|\(\"XkbModel\"\).*|\1 \"$MODEL\"|" /etc/X11/xorg.conf.d/10-keyboard.conf
sed -i "s|\(KEYMAP=\).*|\1$LAYOUT|" /etc/vconsole.conf
</string>
</stringlist>
</property>

View File

@ -344,7 +344,8 @@ dcop_write_details $"\
${MOUNT_SPACE} Mbytes copied
Installation time: $TIME_ELAPSED minutes"
CONFIGURED_FILES="/etc/sysconfig/keyboard /etc/sysconfig/i18n /etc/X11/xorg.conf"
CONFIGURED_FILES="/etc/sysconfig/keyboard /etc/sysconfig/i18n /etc/sysconfig/vconsole.conf \
/etc/X11/xorg.conf /etc/X11/xorg.conf.d/10-keyboard.conf /etc/X11/xorg.conf.d/20-touchpad.conf"
for f in $CONFIGURED_FILES; do
cp $f ${MOUNTPOINT}/${f}
done