# 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
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