aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-04-07 10:41:10 -0400
committerBill Nottingham <notting@redhat.com>2009-04-07 10:41:40 -0400
commite4aae092b29efa2a1c78d2a02e61491c56c0050a (patch)
tree91620e0aa9c1f9cdd32a029984ff2b4a689d17b1
parentc1bb6fcd709c54d885c21fa97fd18c4f2e969c9d (diff)
downloadinitscripts-e4aae092b29efa2a1c78d2a02e61491c56c0050a.tar
initscripts-e4aae092b29efa2a1c78d2a02e61491c56c0050a.tar.gz
initscripts-e4aae092b29efa2a1c78d2a02e61491c56c0050a.tar.bz2
initscripts-e4aae092b29efa2a1c78d2a02e61491c56c0050a.tar.xz
initscripts-e4aae092b29efa2a1c78d2a02e61491c56c0050a.zip
Fix sort.
-rwxr-xr-xprefdm2
1 files changed, 1 insertions, 1 deletions
diff --git a/prefdm b/prefdm
index c1f0007b..d39c7465 100755
--- a/prefdm
+++ b/prefdm
@@ -41,7 +41,7 @@ exec kdm "$@" >/dev/null 2>&1 </dev/null
exec wdm "$@" >/dev/null 2>&1 </dev/null
exec xdm "$@" >/dev/null 2>&1 </dev/null
-for pkg in $(LC_ALL=C rpm -q --qf "%{NAME}\n" --whatprovides "service(graphical-login)"| sort -u) ; do
+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
exec $dm "$@" >/dev/null 2>&1 </dev/null