projects
/
breezed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetics.
[breezed.git]
/
install.sh
diff --git
a/install.sh
b/install.sh
index
deb201b
..
ce1d551
100755
(executable)
--- a/
install.sh
+++ b/
install.sh
@@
-2,7
+2,7
@@
# breezed is a fan speed control daemon for Linux computers.
#
# 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 <francois@fleuret.org>
#
# This file is part of breezed.
# Written by Francois Fleuret <francois@fleuret.org>
#
# 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 <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with breezed. If not, see <http://www.gnu.org/licenses/>.
+PM_SLEEPD_DIR="/usr/lib/pm-utils/sleep.d/"
+
make -k
if [[ ! -a "/etc/breezed.conf" ]]; then
make -k
if [[ ! -a "/etc/breezed.conf" ]]; then
@@
-29,7
+31,14
@@
fi
cp ./breezed /usr/local/bin/
cp ./breezed.sh /etc/init.d/
cp ./breezed /usr/local/bin/
cp ./breezed.sh /etc/init.d/
-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 ${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
cp ./breezed.1 /usr/share/man/man1/
update-rc.d breezed.sh defaults