X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=install.sh;h=ce1d5517e15799f4fe5b6eff38dea688a2c43efb;hb=767e4a6525a02fff758450bf61430e2ef10fdc06;hp=8ef2445ae3514c6b75c3221da6cd500f4aaf4ec4;hpb=c9839b2f638f132d4af8833b5f2573fa01311836;p=breezed.git diff --git a/install.sh b/install.sh index 8ef2445..ce1d551 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ # breezed is a fan speed control daemon for Linux computers. # -# Copyright (c) 2008 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 @@ -30,10 +32,10 @@ fi cp ./breezed /usr/local/bin/ cp ./breezed.sh /etc/init.d/ -if [[ -d "/usr/lib/pm-utils/sleep.d/" ]]; then - cp ./breezed-pm-utils.sh /usr/lib/pm-utils/sleep.d/50breezed +if [[ -d "${PM_SLEEPD_DIR}" ]]; then + cp ./breezed-pm-utils.sh ${PM_SLEEPD_DIR}/50breezed else - echo "I can not find /usr/lib/pm-utils/sleep.d/" + echo "I can not find ${PM_SLEEPD_DIR}" echo "On Debian, you should install pm-utils" fi