aboutsummaryrefslogtreecommitdiffstats
path: root/prefdm
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-08-13 20:45:42 +0000
committerBill Nottingham <notting@redhat.com>2002-08-13 20:45:42 +0000
commit37ca82a58e629d9cde638603e9808fec4a1b19af (patch)
tree2d3b1a206f43731c5632f1e45e39b2b97ae26856 /prefdm
parent4edc473e3e708db975b4ef264d35cb4878d7cbfe (diff)
downloadinitscripts-37ca82a58e629d9cde638603e9808fec4a1b19af.tar
initscripts-37ca82a58e629d9cde638603e9808fec4a1b19af.tar.gz
initscripts-37ca82a58e629d9cde638603e9808fec4a1b19af.tar.bz2
initscripts-37ca82a58e629d9cde638603e9808fec4a1b19af.tar.xz
initscripts-37ca82a58e629d9cde638603e9808fec4a1b19af.zip
use GDM by default unless specified by DISPLAYMANAGER
Diffstat (limited to 'prefdm')
-rwxr-xr-xprefdm7
1 files changed, 4 insertions, 3 deletions
diff --git a/prefdm b/prefdm
index 8e9e9918..5ff5fd5c 100755
--- a/prefdm
+++ b/prefdm
@@ -19,11 +19,12 @@ fi
preferred=
if [ -f /etc/sysconfig/desktop ]; then
. /etc/sysconfig/desktop
- [ -n "$DISPLAYMANAGER" ] && DESKTOP=$DISPLAYMANAGER
- if [ "$DESKTOP" = GNOME ]; then
+ if [ "$DISPLAYMANAGER" = GNOME ]; then
preferred=gdm
- elif [ "$DESKTOP" = KDE -o "$DESKTOP" = KDE1 -o "$DESKTOP" = KDE2 ]; then
+ elif [ "$DISPLAYMANAGER" = KDE ]; then
preferred=kdm
+ elif [ "$DISPLAYMANAGER" = XDM ]; then
+ preferred=xdm
fi
fi