diff options
author | Florian La Roche <laroche@redhat.com> | 2002-06-26 09:02:16 +0000 |
---|---|---|
committer | Florian La Roche <laroche@redhat.com> | 2002-06-26 09:02:16 +0000 |
commit | b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e (patch) | |
tree | 4298e55eca3bc8b767ae7cf695261cd119d75712 /prefdm | |
parent | a12d5004ebd0035494247f71c5cebc060729c569 (diff) | |
download | initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar.gz initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar.bz2 initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.tar.xz initscripts-b1c3fe8675bf6d6831b2d63adb42dc43ef96f69e.zip |
- start cleaning up some sh coding things
Diffstat (limited to 'prefdm')
-rwxr-xr-x | prefdm | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin # We need to source this so that the login screens get translated -. /etc/profile.d/lang.sh +[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh # Run preferred X display manager @@ -18,11 +18,11 @@ fi preferred= if [ -f /etc/sysconfig/desktop ]; then - source /etc/sysconfig/desktop >/dev/null 2>&1 + . /etc/sysconfig/desktop [ -n "$DISPLAYMANAGER" ] && DESKTOP=$DISPLAYMANAGER if [ "$DESKTOP" = GNOME ]; then preferred=gdm - elif [ "$DESKTOP" = "KDE" -o "$DESKTOP" = "KDE1" -o "$DESKTOP" = "KDE2" ]; then + elif [ "$DESKTOP" = KDE -o "$DESKTOP" = KDE1 -o "$DESKTOP" = KDE2 ]; then preferred=kdm fi fi |