summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2008-01-27 10:38:50 +0000
committerRichard Hughes <richard@hughsie.com>2008-01-27 10:38:50 +0000
commit40d7d07afd59fde567c36a6f684ff329fd1394bb (patch)
tree7b04b756a7ebcc9ce1dc2ebf6fb0118e411d7909
parentde1ace906a3c99b01996b7a0e8dfabcabf0262c9 (diff)
Set the sort order in functions instead of pm-action.
-rwxr-xr-xpm/functions3
-rwxr-xr-xsrc/pm-action2
2 files changed, 3 insertions, 2 deletions
diff --git a/pm/functions b/pm/functions
index 39872e3..ec71f78 100755
--- a/pm/functions
+++ b/pm/functions
@@ -16,6 +16,9 @@ PM_LOGFILE=${PM_LOGFILE:=/var/log/pm-suspend.log}
SUSPEND_MODULES=""
TEMPORARY_CPUFREQ_GOVERNOR="userspace"
+# Use c sort order
+export LC_COLLATE=C
+
[ -f /usr/lib/pm-utils/defaults ] && . /usr/lib/pm-utils/defaults
set +a
diff --git a/src/pm-action b/src/pm-action
index b1ee70f..7c2643b 100755
--- a/src/pm-action
+++ b/src/pm-action
@@ -51,8 +51,6 @@ if [ -n "$EUID" -a "$EUID" != "0" ]; then
exit 1
fi
-export LC_COLLATE=C
-
# Get the command line options
while [ $# -gt 0 ]
do