diff options
author | Bill Nottingham <notting@redhat.com> | 1999-09-04 02:56:03 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-09-04 02:56:03 +0000 |
commit | f26ca695f720f5f7763eedf1e752d87adeca86f3 (patch) | |
tree | 5fdf07d7d4c20896e53d2b29fb363d54a8238a32 | |
parent | 9ed2631159e4a09b26c89b6ce25a2df1f5db52b7 (diff) | |
download | initscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.tar initscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.tar.gz initscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.tar.bz2 initscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.tar.xz initscripts-f26ca695f720f5f7763eedf1e752d87adeca86f3.zip |
Wow. That's *brooooooooooooooooken*.
-rwxr-xr-x | prefdm | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |