projects
/
breezed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c9839b2
)
Cosmetics.
author
Francois Fleuret
<francois@fleuret.org>
Sun, 19 Apr 2009 20:31:28 +0000
(22:31 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Sun, 19 Apr 2009 20:31:28 +0000
(22:31 +0200)
install.sh
patch
|
blob
|
history
diff --git
a/install.sh
b/install.sh
index
8ef2445
..
3c2e624
100755
(executable)
--- a/
install.sh
+++ b/
install.sh
@@
-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
@@
-30,10
+32,10
@@
fi
cp ./breezed /usr/local/bin/
cp ./breezed.sh /etc/init.d/
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
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
echo "On Debian, you should install pm-utils"
fi