Commit ba14495d authored by Alessandro Elias's avatar Alessandro Elias
Browse files

Merge branch 'issue/390' into 'master'

SCRUM#390: Adds copyright and credits to all files

See merge request !16
parents 84ed82d7 a0114790
Pipeline #14397 passed with stages
in 1 minute and 55 seconds
#!/bin/sh
#!/bin/bash
# Script adapted from Laércio de Sousa <laerciosousa@sme-mogidascruzes.sp.gov.br>
tries=10
export DISPLAY=${1}
......@@ -10,7 +12,6 @@ shift
# This is a workaround for the case Xephyr is started before host Xorg
# server is ready for connections, despite the socket activation.
# tenta 10 vezes. se nao der, nao deu
for i in $(seq ${tries})
do
if xset q >/dev/null 2>&1
......
#!/bin/sh
# Conta quantas placas de video tem
#!/bin/bash
# Script adapted from Laércio de Sousa <laerciosousa@sme-mogidascruzes.sp.gov.br>
num_cards=$(lspci | grep -c Silicon.Motion)
# Se nao for igual a 1 ou 2 sai com erro 2
[ ${num_cards} -ne 1 ] && exit 2
# executa o X
exec Xorg ${1} -seat __fake-seat-${num_cards}__ -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