Automatic commit
[breezed.git] / install.sh
index d2b1ea8..8ef2445 100755 (executable)
@@ -3,7 +3,7 @@
 #  breezed is a fan speed control daemon for Linux computers.
 #
 #  Copyright (c) 2008 Francois Fleuret
-#  Written by Francois Fleuret <francois.fleuret@idiap.ch>
+#  Written by Francois Fleuret <francois@fleuret.org>
 #
 #  This file is part of breezed.
 #
@@ -29,7 +29,15 @@ fi
 
 cp ./breezed /usr/local/bin/
 cp ./breezed.sh /etc/init.d/
-cp ./breezed-resume.sh /etc/acpi/resume.d/99-breezed.sh
+
+if [[ -d "/usr/lib/pm-utils/sleep.d/" ]]; then
+    cp ./breezed-pm-utils.sh /usr/lib/pm-utils/sleep.d/50breezed
+else
+    echo "I can not find /usr/lib/pm-utils/sleep.d/"
+    echo "On Debian, you should install pm-utils"
+fi
+
+cp ./breezed.1 /usr/share/man/man1/
 
 update-rc.d breezed.sh defaults