Commit 9f294b0c authored by Laércio de Sousa's avatar Laércio de Sousa
Browse files

Unificados os serviços de inicialização do Xorg hospedeiro. O perfil urbano ou...

Unificados os serviços de inicialização do Xorg hospedeiro. O perfil urbano ou rural agora é escolhido automaticamente, dependendo do número de placas TN-502 detectadas.
parent b6b13b91
#!/bin/bash
install -m 644 systemd/xorg@.s* /etc/systemd/system
install -m 644 systemd/xorg-daemon.s* /etc/systemd/system
install -m 644 udev/71-* /etc/udev/rules.d
install -d /etc/X11/xorg.conf.d
install -m 644 xorg/99-tn502.conf.in /etc/X11/xorg.conf.d
install -m 755 update-xorg-conf /usr/local/bin
install -m 755 xorg-daemon /usr/local/bin
install -d /etc/xdg/lightdm/lightdm.conf.d
install -m 644 lightdm/xephyr*.conf /etc/xdg/lightdm/lightdm.conf.d
......@@ -16,8 +17,8 @@ ln -s xephyr-wrapper /usr/local/bin/xephyr-wrapper-0
ln -s xephyr-wrapper /usr/local/bin/xephyr-wrapper-1
update-xorg-conf
systemctl enable xorg@rural.socket
systemctl start xorg@rural.socket
systemctl enable xorg-daemon.socket
systemctl start xorg-daemon.socket
apt-add-repository ppa:ubuntu-multiseat/ppa
apt update
......
#!/bin/bash
install -m 644 systemd/xorg@.s* /etc/systemd/system
install -m 644 systemd/xorg-daemon.s* /etc/systemd/system
install -m 644 udev/* /etc/udev/rules.d
install -d /etc/X11/xorg.conf.d
install -m 644 xorg/99-tn502.conf.in /etc/X11/xorg.conf.d
install -m 755 update-xorg-conf /usr/local/bin
install -m 755 xorg-daemon /usr/local/bin
install -d /etc/xdg/lightdm/lightdm.conf.d
install -m 644 lightdm/xephyr*.conf /etc/xdg/lightdm/lightdm.conf.d
......@@ -16,8 +17,8 @@ ln -s xephyr-wrapper /usr/local/bin/xephyr-wrapper-0
ln -s xephyr-wrapper /usr/local/bin/xephyr-wrapper-1
update-xorg-conf
systemctl enable xorg@urbano.socket
systemctl start xorg@urbano.socket
systemctl enable xorg-daemon.socket
systemctl start xorg-daemon.socket
apt-add-repository ppa:ubuntu-multiseat/ppa
apt update
......
[Unit]
Description=Service for Xorg server at display :90 (profile "proinfo-%i")
Description=Service for Xorg server at display :90
[Service]
ExecStartPre=/usr/local/bin/update-xorg-conf
ExecStart=/usr/bin/X :90 -seat __fake-seat-proinfo-%i__ -dpms -s 0 -nocursor
ExecStart=/usr/local/bin/xorg-daemon :90
SuccessExitStatus=0 1
[Unit]
Description=Socket for Xorg server at display :90 (profile "proinfo-%i")
Description=Socket for Xorg server at display :90
[Socket]
ListenStream=/tmp/.X11-unix/X90
......
#!/bin/sh
case "$(lspci | grep -c SM501)" in
1) pregao=urbano ;;
2) pregao=rural ;;
*) exit 2 ;;
esac
exec Xorg ${1} -seat __fake-seat-proinfo-${pregao}__ -dpms -s 0 -nocursor
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment