X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=install.sh;h=ffd108e7513cebd21b6985310a9adf336f07db54;hb=f75dfd18a0ddcc0368f1157539557a1e97ce3968;hp=93c90ef146fa0fd36fe4d82aa9aabf22b1a336dc;hpb=f11fa9f1159a2a7185eb34ff5160b65d2fea5c11;p=breezed.git diff --git a/install.sh b/install.sh index 93c90ef..ffd108e 100755 --- a/install.sh +++ b/install.sh @@ -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,8 +31,14 @@ fi cp ./breezed /usr/local/bin/ cp ./breezed.sh /etc/init.d/ -cp ./breezed-resume.sh /etc/acpi/resume.d/99-breezed.sh -cp ./breezed-suspend.sh /etc/acpi/suspend.d/01-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