X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=install.sh;h=8ef2445ae3514c6b75c3221da6cd500f4aaf4ec4;hb=c9839b2f638f132d4af8833b5f2573fa01311836;hp=2bc9b379b0b9be74f6855726c23f40a8fe99bd5d;hpb=289404b8b5843489dd369a7dfc7c895bda49073d;p=breezed.git diff --git a/install.sh b/install.sh index 2bc9b37..8ef2445 100755 --- a/install.sh +++ b/install.sh @@ -29,8 +29,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/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