On Fri, Feb 25, 2011 at 00:20, Samuel Thibault <sthiba...@debian.org> wrote:
> Anton Zinoviev, le Thu 24 Feb 2011 07:28:18 +0200, a écrit :
>> True.  Other people have complained about this too.  Unfortunately I
>> don't know a reliable way to test whether we are on the console or in X
>> and it is generally dangerous to reconfigure the console if X is active.
>
> Maybe dpkg-reconfigure should at least print a warning about not doing
> reconfiguration and advising to use setupcon and udevadm, as explained
> in /usr/share/doc/keyboard-configuration/README.Debian.

Maybe something simple as:

if pidof X > /dev/null; then
    echo "X is running"
else
    echo "X isn't running"
fi
?

-- 
Otavio Salvador                             O.S. Systems
E-mail: ota...@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/AANLkTi=rmax10an2trhc9yykdutn1yxb6aqcxhlbn...@mail.gmail.com

Reply via email to