diff options
author | Matt Zimmerman <matt.zimmerman@canonical.com> | 2004-11-14 00:50:57 +0000 |
---|---|---|
committer | Matt Zimmerman <matt.zimmerman@canonical.com> | 2004-11-14 00:50:57 +0000 |
commit | 2288cf77157ae18648ed5643f9f4f4a7f89fb22a (patch) | |
tree | a61f81a642197287b37639a2b2f522dde3800163 /debian | |
parent | af60a829702760b3451aeafde6819a41c68eb614 (diff) |
Don't hardcode paths in apt.cron.daily
Diffstat (limited to 'debian')
-rw-r--r-- | debian/apt.cron.daily | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/apt.cron.daily b/debian/apt.cron.daily index 67b58747e..a97222095 100644 --- a/debian/apt.cron.daily +++ b/debian/apt.cron.daily @@ -33,8 +33,8 @@ fi # 1 (false) System is not on mains power # 255 (false) Power status could not be determined # Desktop systems always return 255 it seems -if [ -x /usr/bin/on_ac_power ]; then - /usr/bin/on_ac_power +if which on_ac_power >/dev/null; then + on_ac_power if [ $? -eq 1 ]; then exit 0 fi |