aboutsummaryrefslogtreecommitdiffstats
path: root/prefdm
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-04 02:56:03 +0000
committerBill Nottingham <notting@redhat.com>1999-09-04 02:56:03 +0000
commitf26ca695f720f5f7763eedf1e752d87adeca86f3 (patch)
tree5fdf07d7d4c20896e53d2b29fb363d54a8238a32 /prefdm
parent9ed2631159e4a09b26c89b6ce25a2df1f5db52b7 (diff)
downloadinitscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.tar
initscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.tar.gz
initscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.tar.bz2
initscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.tar.xz
initscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.zip
Wow. That's *brooooooooooooooooken*.
Diffstat (limited to 'prefdm')
-rwxr-xr-xprefdm8
1 files changed, 4 insertions, 4 deletions
diff --git a/prefdm b/prefdm
index b014f56a..f6452de9 100755
--- a/prefdm
+++ b/prefdm
@@ -1,13 +1,13 @@
#!/bin/sh
-# Set preferred X display manager link
+# Run preferred X display manager
preferred=
if [ -f /etc/sysconfig/desktop ]; then
- if [ -n "grep GNOME /etc/sysconfig/desktop" ]; then
+ if grep -q GNOME /etc/sysconfig/desktop 2>/dev/null; then
preferred=gdm
- elif [ -n "grep KDE /etc/sysconfig/desktop" ]; then
+ elif grep -q KDE /etc/sysconfig/desktop 2> /dev/null; then
preferred=kdm
- elif [ -n "grep AnotherLevel /etc/sysconfig/desktop" ]; then
+ elif grep -q AnotherLevel /etc/sysconfig/desktop 2> /dev/null; then
preferred=xdm
fi
fi