aboutsummaryrefslogtreecommitdiffstats
path: root/prefdm
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <bero@redhat.com>2000-06-04 20:04:09 +0000
committerBernhard Rosenkraenzer <bero@redhat.com>2000-06-04 20:04:09 +0000
commitee80366b5be86f730539618211d573560a1139de (patch)
tree5a1892e02d6043dfb0471be78ee52115436bc898 /prefdm
parent55a9292cd14dbf4bda059e20ca58f8dc6e448234 (diff)
downloadinitscripts-ee80366b5be86f730539618211d573560a1139de.tar
initscripts-ee80366b5be86f730539618211d573560a1139de.tar.gz
initscripts-ee80366b5be86f730539618211d573560a1139de.tar.bz2
initscripts-ee80366b5be86f730539618211d573560a1139de.tar.xz
initscripts-ee80366b5be86f730539618211d573560a1139de.zip
autologin support
Diffstat (limited to 'prefdm')
-rwxr-xr-xprefdm10
1 files changed, 10 insertions, 0 deletions
diff --git a/prefdm b/prefdm
index f5289356..253f3101 100755
--- a/prefdm
+++ b/prefdm
@@ -6,6 +6,16 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
. /etc/profile.d/lang.sh
# Run preferred X display manager
+
+# Try autologin first, if wanted...
+if [ -f /etc/sysconfig/autologin -a -x /usr/sbin/autologin ]; then
+ if /usr/sbin/autologin; then
+ exit 0
+ fi
+ # If autologin fails (bad permissions, etc.), we get here -
+ # time to start a real display manager.
+fi
+
preferred=
if [ -f /etc/sysconfig/desktop ]; then
if grep -q GNOME /etc/sysconfig/desktop 2>/dev/null; then