summaryrefslogtreecommitdiff
path: root/src/pm-powersave
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2007-02-20 18:14:22 +0000
committerPeter Jones <pjones@redhat.com>2007-02-20 18:14:22 +0000
commit5ff08f96b93233502eaa4a5094e369200a9dce9f (patch)
tree2f7832ef6d8f71fe914b58d2b7b8b615235c5272 /src/pm-powersave
parent5cb482e387a076187440c7ea626147a640f31655 (diff)
- handle emacs backups like we handle them in pm/functions
Diffstat (limited to 'src/pm-powersave')
-rwxr-xr-xsrc/pm-powersave4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pm-powersave b/src/pm-powersave
index 8383776..6b960ba 100755
--- a/src/pm-powersave
+++ b/src/pm-powersave
@@ -26,9 +26,9 @@
runpowerhooks()
{
- files="/etc/pm/power.d/*"
+ files="/etc/pm/power.d/*[^~]"
for file in $files ; do
- [[ "$file" =~ ".*~$" ]] || [ -x $file ] && $file $1
+ [ -x $file ] && $file $1
done
}