X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=install.sh;h=ce1d5517e15799f4fe5b6eff38dea688a2c43efb;hb=b66a5ba4e83f754d2a6ef57547404aeba8fd86ae;hp=d2b1ea8021c14bc642ce64175c9daeee74fcad9f;hpb=29d922d3b115ae81e076e9fc03e5ea986fc42630;p=breezed.git diff --git a/install.sh b/install.sh index d2b1ea8..ce1d551 100755 --- a/install.sh +++ b/install.sh @@ -2,8 +2,8 @@ # breezed is a fan speed control daemon for Linux computers. # -# Copyright (c) 2008 Francois Fleuret -# Written by Francois Fleuret +# Copyright (c) 2008, 2009 Francois Fleuret +# Written by Francois Fleuret # # This file is part of breezed. # @@ -19,6 +19,8 @@ # You should have received a copy of the GNU General Public License # along with breezed. If not, see . +PM_SLEEPD_DIR="/usr/lib/pm-utils/sleep.d/" + make -k if [[ ! -a "/etc/breezed.conf" ]]; then @@ -29,7 +31,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 "${PM_SLEEPD_DIR}" ]]; then + cp ./breezed-pm-utils.sh ${PM_SLEEPD_DIR}/50breezed +else + echo "I can not find ${PM_SLEEPD_DIR}" + echo "On Debian, you should install pm-utils" +fi + +cp ./breezed.1 /usr/share/man/man1/ update-rc.d breezed.sh defaults