]> git.saurik.com Git - apt.git/commitdiff
Don't hardcode paths in apt.cron.daily
authorMatt Zimmerman <matt.zimmerman@canonical.com>
Sun, 14 Nov 2004 00:50:57 +0000 (00:50 +0000)
committerMatt Zimmerman <matt.zimmerman@canonical.com>
Sun, 14 Nov 2004 00:50:57 +0000 (00:50 +0000)
debian/apt.cron.daily

index 67b58747e8fcb19d62cf1ffc4d1e9d360ad3a898..a97222095da866d5546af9f2eaef538558ad9d2a 100644 (file)
@@ -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