3 # breezed is a fan speed control daemon for Linux computers.
5 # Copyright (c) 2008, 2009 Francois Fleuret
6 # Written by Francois Fleuret <francois@fleuret.org>
8 # This file is part of breezed.
10 # breezed is free software: you can redistribute it and/or modify it
11 # under the terms of the GNU General Public License version 3 as
12 # published by the Free Software Foundation.
14 # breezed is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with breezed. If not, see <http://www.gnu.org/licenses/>.
22 PM_SLEEPD_DIR="/usr/lib/pm-utils/sleep.d/"
26 if [[ ! -a "/etc/breezed.conf" ]]; then
27 echo "You have to copy one of the breezed_*.conf file in /etc/breezed.conf"
28 echo "before installing the daemon."
32 cp ./breezed /usr/local/bin/
33 cp ./breezed.sh /etc/init.d/
35 if [[ -d "${PM_SLEEPD_DIR}" ]]; then
36 cp ./breezed-pm-utils.sh ${PM_SLEEPD_DIR}/50breezed
38 echo "I can not find ${PM_SLEEPD_DIR}"
39 echo "On Debian, you should install pm-utils"
42 cp ./breezed.1 /usr/share/man/man1/
44 update-rc.d breezed.sh defaults
46 /etc/init.d/breezed.sh start