Browse Source

Don't hardcode paths in apt.cron.daily

Matt Zimmerman 21 years ago
parent
commit
2288cf7715
1 changed files with 2 additions and 2 deletions
  1. 2 2
      debian/apt.cron.daily

+ 2 - 2
debian/apt.cron.daily

@@ -33,8 +33,8 @@ fi
 #       1 (false)   System is not on mains power
 #       1 (false)   System is not on mains power
 #       255 (false) Power status could not be determined
 #       255 (false) Power status could not be determined
 # Desktop systems always return 255 it seems
 # 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
     if [ $? -eq 1 ]; then
 	exit 0
 	exit 0
     fi
     fi