aboutsummaryrefslogtreecommitdiffstats
path: root/prefdm
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-22 14:38:48 +0000
committerBill Nottingham <notting@redhat.com>2000-08-22 14:38:48 +0000
commitc1aa64a98956158e3d63b6e3d7ff6d07b397890b (patch)
treeac996e2b5a0a1be60c344738e04e35e5bd911402 /prefdm
parente95ca24cd9d5a035c71e57317179be2988843235 (diff)
downloadinitscripts-c1aa64a98956158e3d63b6e3d7ff6d07b397890b.tar
initscripts-c1aa64a98956158e3d63b6e3d7ff6d07b397890b.tar.gz
initscripts-c1aa64a98956158e3d63b6e3d7ff6d07b397890b.tar.bz2
initscripts-c1aa64a98956158e3d63b6e3d7ff6d07b397890b.tar.xz
initscripts-c1aa64a98956158e3d63b6e3d7ff6d07b397890b.zip
if isn't there, just run whatever display manager happens to be installed
Diffstat (limited to 'prefdm')
-rwxr-xr-xprefdm9
1 files changed, 8 insertions, 1 deletions
diff --git a/prefdm b/prefdm
index 9654ea0f..fba4858c 100755
--- a/prefdm
+++ b/prefdm
@@ -41,4 +41,11 @@ fi
if [ -n "$preferred" ] && which $preferred >/dev/null 2>&1; then
exec `which $preferred` $*
fi
-exit 1
+if which gdm >/dev/null 2>&1; then
+ exec `which gdm` $*
+elif which kdm >/dev/null 2>&1; then
+ exec `which kdm` $*
+elif which xdm >/dev/null 2>&1; then
+ exec `which xdm` $*
+fi
+fexit 1