Bug#614127: confirmed on allmachines: painfull
On Fri, Feb 25, 2011 at 00:20, Samuel Thibault <sthibault@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: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Reply to: