projects
/
breezed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic commit
[breezed.git]
/
install.sh
diff --git
a/install.sh
b/install.sh
index
deb201b
..
8ef2445
100755
(executable)
--- a/
install.sh
+++ b/
install.sh
@@
-29,7
+29,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 "/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
cp ./breezed.1 /usr/share/man/man1/
update-rc.d breezed.sh defaults