xbps-casper: replace selected keymap value for X.org evdev.
This commit is contained in:
parent
796f536f7b
commit
7dc1886a95
|
@ -35,6 +35,12 @@ if [ "${set_keymap}" ]; then
|
||||||
"${rootmnt}/etc/conf.d/keymaps"
|
"${rootmnt}/etc/conf.d/keymaps"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Setup keymap for X.org evdev.
|
||||||
|
if [ -r "${rootmnt}/etc/udev/rules.d/75-x11-input.rules" ]; then
|
||||||
|
sed -i -e "s|\(ENV{xkblayout}\=\)\"us\"|\1\"${keymap}\"|" \
|
||||||
|
${rootmnt}/etc/udev/rules.d/75-x11-input.rules
|
||||||
|
fi
|
||||||
|
|
||||||
# Setup keymap for lightdm.
|
# Setup keymap for lightdm.
|
||||||
if [ -r "${rootmnt}/etc/lightdm.conf" ]; then
|
if [ -r "${rootmnt}/etc/lightdm.conf" ]; then
|
||||||
sed -i -e "s|^\#\(layout=\).*|\1${keymap}|" ${rootmnt}/etc/lightdm.conf
|
sed -i -e "s|^\#\(layout=\).*|\1${keymap}|" ${rootmnt}/etc/lightdm.conf
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-casper'
|
# Template file for 'xbps-casper'
|
||||||
pkgname=xbps-casper
|
pkgname=xbps-casper
|
||||||
_localver=0.14 # XBPS package version
|
_localver=0.15 # XBPS package version
|
||||||
_distver=1.236 # This should match the upstream (Ubuntu) version
|
_distver=1.236 # This should match the upstream (Ubuntu) version
|
||||||
version=${_localver}.${_distver}
|
version=${_localver}.${_distver}
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
|
|
Loading…
Reference in a new issue