diff options
author | Bill Nottingham <notting@redhat.com> | 2009-04-07 11:19:03 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-04-07 11:19:03 -0400 |
commit | 4f7606b2698b77bf21b1ae09732af9d4e1bd0b12 (patch) | |
tree | d02853262eaca66b1760ed5873210f28700a1941 | |
parent | 9aad74c042f2575aef7cca514967bbce9729e14d (diff) | |
download | initscripts-4f7606b2698b77bf21b1ae09732af9d4e1bd0b12.tar initscripts-4f7606b2698b77bf21b1ae09732af9d4e1bd0b12.tar.gz initscripts-4f7606b2698b77bf21b1ae09732af9d4e1bd0b12.tar.bz2 initscripts-4f7606b2698b77bf21b1ae09732af9d4e1bd0b12.tar.xz initscripts-4f7606b2698b77bf21b1ae09732af9d4e1bd0b12.zip |
To preserve prior behavior (and optimize boot), add specific fallbacks for the two main display managers.
-rwxr-xr-x | prefdm | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -35,6 +35,10 @@ shopt -s execfail [ -n "$preferred" ] && exec $preferred "$@" >/dev/null 2>&1 </dev/null +# Fallbacks, in order +exec gdm "$@" >/dev/null 2>&1 </dev/null +exec kdm "$@" >/dev/null 2>&1 </dev/null + for pkg in $(rpm -q --qf "%{NAME}\n" --whatprovides "service(graphical-login)"| LC_ALL=C sort -u) ; do dm=$(rpm -q --provides $pkg | awk '/^service\(graphical-login\)/ { print $3 ; exit }') if [ -n "$dm" ]; then |