summaryrefslogtreecommitdiffstats
path: root/prefdm
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-10-08 19:38:25 +0000
committerBill Nottingham <notting@redhat.com>2007-10-08 19:38:25 +0000
commit42a9bd163f092485eb32aada19d2edfa44833605 (patch)
treee9bf112a2f4595cf11fafca8de6628314244b29a /prefdm
parent5941b5483e6d86d8aee8fa9749c30e69003ed908 (diff)
downloadinitscripts-42a9bd163f092485eb32aada19d2edfa44833605.tar.gz
initscripts-42a9bd163f092485eb32aada19d2edfa44833605.tar.xz
initscripts-42a9bd163f092485eb32aada19d2edfa44833605.zip
add wdm section (#248087)
Diffstat (limited to 'prefdm')
-rwxr-xr-xprefdm4
1 files changed, 3 insertions, 1 deletions
diff --git a/prefdm b/prefdm
index 156b14e7..3baa6933 100755
--- a/prefdm
+++ b/prefdm
@@ -18,6 +18,8 @@ if [ -f /etc/sysconfig/desktop ]; then
preferred=/usr/sbin/gdm
elif [ "$DISPLAYMANAGER" = KDE ]; then
preferred=/usr/bin/kdm
+ elif [ "$DISPLAYMANAGER" = WDM ]; then
+ preferred=/usr/bin/wdm
elif [ "$DISPLAYMANAGER" = XDM ]; then
preferred=/usr/bin/xdm
elif [ -n "$DISPLAYMANAGER" ]; then
@@ -32,7 +34,7 @@ shopt -s execfail
# Fallbacks, in order
exec gdm "$@" >/dev/null 2>&1 </dev/null
exec kdm "$@" >/dev/null 2>&1 </dev/null
+exec wdm "$@" >/dev/null 2>&1 </dev/null
exec xdm "$@" >/dev/null 2>&1 </dev/null
-
# catch all exit error
exit 1