diff options
author | 2010-04-11 19:57:36 +0000 | |
---|---|---|
committer | 2010-04-11 19:57:36 +0000 | |
commit | 3de592575a98dac87c6cdff17fdd12c26f9a5397 (patch) | |
tree | 6187095870e24b2c7abe122eb21df5dd8ac4e952 /sys-apps/slocate/files | |
parent | Version bump. Added the http_push module. Moved libatomic_ops dep to DEPEND. ... (diff) | |
download | historical-3de592575a98dac87c6cdff17fdd12c26f9a5397.tar.gz historical-3de592575a98dac87c6cdff17fdd12c26f9a5397.tar.bz2 historical-3de592575a98dac87c6cdff17fdd12c26f9a5397.zip |
Only run cronjob when on AC power #312583 by Daniel Troeder.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sys-apps/slocate/files')
-rw-r--r-- | sys-apps/slocate/files/slocate-3.1-cron2.patch | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys-apps/slocate/files/slocate-3.1-cron2.patch b/sys-apps/slocate/files/slocate-3.1-cron2.patch index 8ed1648ce0b8..16be3da673da 100644 --- a/sys-apps/slocate/files/slocate-3.1-cron2.patch +++ b/sys-apps/slocate/files/slocate-3.1-cron2.patch @@ -1,7 +1,11 @@ --- debian/cron.daily +++ debian/cron.daily -@@ -1,12 +1,21 @@ +@@ -1,12 +1,25 @@ #! /bin/sh ++ ++. /etc/init.d/functions.sh 2>/dev/null ++on_ac_power 2>/dev/null #312583 ++[ $? -eq 1 ] && exit 0 -if [ -x /usr/bin/slocate ] +if [ -x /usr/bin/updatedb ] |