40-autologin: don't do runlevel 5 if X is absent

We can do textmode live images, after all.
Some sort of autologin would be useful there too
but doing it right is less obvious to me at the moment...
This commit is contained in:
Michael Shigorin 2012-01-03 14:11:08 +02:00
parent a7ac4f236c
commit 8fbf3585b0

View File

@ -1,4 +1,10 @@
#!/bin/sh -ef
if [ ! -x /usr/bin/X ]; then
echo "warning: autologin feature requested but X not installed" >&2
exit 0
fi
USER=altlinux
# setup runlevel