diff options
author | Achim Gottinger <achim@gentoo.org> | 2001-05-18 19:05:58 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2001-05-18 19:05:58 +0000 |
commit | d78acc18372ca48c47d958fcb115639ac70639f3 (patch) | |
tree | 78f8ebb9767f6c3ecb0eb2f728fb37ffd5833b16 /x11-base | |
parent | Helper package (diff) | |
download | historical-d78acc18372ca48c47d958fcb115639ac70639f3.tar.gz historical-d78acc18372ca48c47d958fcb115639ac70639f3.tar.bz2 historical-d78acc18372ca48c47d958fcb115639ac70639f3.zip |
Oops
Diffstat (limited to 'x11-base')
-rw-r--r-- | x11-base/xfree/files/xdm | 66 | ||||
-rwxr-xr-x | x11-base/xfree/files/xdm.start | 1 |
2 files changed, 5 insertions, 62 deletions
diff --git a/x11-base/xfree/files/xdm b/x11-base/xfree/files/xdm index 75b0e81dbc85..09e5ec762fe9 100644 --- a/x11-base/xfree/files/xdm +++ b/x11-base/xfree/files/xdm @@ -1,62 +1,4 @@ -#! /bin/bash -#RCUPDATE:4:99:This line is required for script management -# Copyright (c) 1996-99 SuSE GmbH Nuernberg, Germany. All rights reserved. -# -# Author: Florian La Roche <florian@suse.de>, 1996 -# Werner Fink <werner@suse.de>, 1996,98,99 -# Martin Scherbaum <maddin@suse.de>, 1997 -# Reinhard Max <max@suse.de>, 1997 -# -# /sbin/init.d/xdm -# - -. /etc/rc.d/config/basic -. /etc/rc.d/config/functions - -. /etc/profile.env -export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$ROOTPATH - -case "$DISPLAYMANAGER" in - kdm|kde|KDM|KDE) - EXE=$KDEDIR/bin/kdm - ;; - gdm|GDM|Gnome|GNOME) - EXE=$GNOMEDIR/bin/gdm - ;; - *) - EXE=/usr/X11R6/bin/xdm ;; - -esac - -test ! -x "$EXE" && EXE=/usr/X11R6/bin/xdm - -SERVICE=${EXE##*/} -PID="/var/run/xdm.pid" -opts="start stop restart" - -start() { - ebegin "Starting ${SERVICE}" - start-stop-daemon --start --quiet --exe $EXE 1>&2 - if [ -n "$?" ] ; then - # After a crash or a kill signal we may have - # a wrong owner ship of /dev/console - chown root:tty /dev/console /dev/tty0 - chmod 622 /dev/console /dev/tty0 - else - eend $? "Error starting ${SERVICE}." - fi -} - -stop() { - ebegin "Stopping ${SERVICE}" - killall X - start-stop-daemon --stop --quiet --exe $EXE 1>&2 - eend $? "Error stopping ${SERVICE}." -} - -restart() { - stop - start -} - -doservice ${@} +auth required pam_pwdb.so +account required pam_pwdb.so +password required pam_pwdb.so +session required pam_pwdb.so diff --git a/x11-base/xfree/files/xdm.start b/x11-base/xfree/files/xdm.start index b167e5a708a4..75b0e81dbc85 100755 --- a/x11-base/xfree/files/xdm.start +++ b/x11-base/xfree/files/xdm.start @@ -1,4 +1,5 @@ #! /bin/bash +#RCUPDATE:4:99:This line is required for script management # Copyright (c) 1996-99 SuSE GmbH Nuernberg, Germany. All rights reserved. # # Author: Florian La Roche <florian@suse.de>, 1996 |