lxdm: start X in tty7 without systemd.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'lxdm'
|
# Template file for 'lxdm'
|
||||||
pkgname=lxdm
|
pkgname=lxdm
|
||||||
version=0.5.0
|
version=0.5.0
|
||||||
revision=4
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
build_options="systemd"
|
build_options="systemd"
|
||||||
configure_args="$(vopt_if systemd --disable-consolekit --enable-consolekit) --with-pam"
|
configure_args="$(vopt_if systemd --disable-consolekit --enable-consolekit) --with-pam"
|
||||||
@@ -30,7 +30,10 @@ post_install() {
|
|||||||
# Use our own pam file.
|
# Use our own pam file.
|
||||||
rm -f ${DESTDIR}/etc/pam.d/lxdm
|
rm -f ${DESTDIR}/etc/pam.d/lxdm
|
||||||
vinstall ${FILESDIR}/lxdm.pam 644 etc/pam.d lxdm
|
vinstall ${FILESDIR}/lxdm.pam 644 etc/pam.d lxdm
|
||||||
|
# use tty7 for X without systemd
|
||||||
|
if [ -z "$build_option_systemd" ]; then
|
||||||
|
sed -i 's,vt1,vt7,g' ${DESTDIR}/etc/lxdm/lxdm.conf
|
||||||
|
fi
|
||||||
vmkdir var/lib/lxdm
|
vmkdir var/lib/lxdm
|
||||||
echo 'GDK_CORE_DEVICE_EVENTS=true' > ${DESTDIR}/var/lib/lxdm/.pam_environment
|
echo 'GDK_CORE_DEVICE_EVENTS=true' > ${DESTDIR}/var/lib/lxdm/.pam_environment
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user