summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-01-20 17:19:28 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-01-20 17:19:28 +0000
commit56a6fb51c87bec0c19576560ad18a9d8d0eebc06 (patch)
tree6c7454e80f6489fcb136ceab725ac6c65f5b76eb /x11-base
parentoops, should only be in -r1 (diff)
downloadgentoo-2-56a6fb51c87bec0c19576560ad18a9d8d0eebc06.tar.gz
gentoo-2-56a6fb51c87bec0c19576560ad18a9d8d0eebc06.tar.bz2
gentoo-2-56a6fb51c87bec0c19576560ad18a9d8d0eebc06.zip
small fixes
Diffstat (limited to 'x11-base')
-rw-r--r--x11-base/xfree/files/4.2.0-r1/xdm.start19
1 files changed, 10 insertions, 9 deletions
diff --git a/x11-base/xfree/files/4.2.0-r1/xdm.start b/x11-base/xfree/files/4.2.0-r1/xdm.start
index bba5600d3e65..ca7ef16138a4 100644
--- a/x11-base/xfree/files/4.2.0-r1/xdm.start
+++ b/x11-base/xfree/files/4.2.0-r1/xdm.start
@@ -10,15 +10,16 @@ depend() {
. /etc/profile.env
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$ROOTPATH
-case "$DISPLAYMANAGER" in
- kdm|kde|KDM|KDE|kde2|KDE2|kde3|KDE3)
- EXE=`which kdm`
- ;;
- gdm|GDM|Gnome|GNOME)
- EXE=/usr/bin/gdm
- ;;
- *)
- EXE=/usr/X11R6/bin/xdm ;;
+case "`echo $DISPLAYMANAGER | awk '{ print toupper($1) }`" in
+ KDM|KDE|KDE2|KDE3)
+ EXE=`which kdm`
+ ;;
+ GDM|GNOME)
+ EXE=/usr/bin/gdm
+ ;;
+ *)
+ EXE=/usr/X11R6/bin/xdm
+ ;;
esac
test ! -x "$EXE" && EXE=/usr/X11R6/bin/xdm