summaryrefslogtreecommitdiff
blob: d9f7e3e359cc8a60367b52a3dbd9b2663cb8e74d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Index: laptop-mode-tools_1.60/install.sh
===================================================================
--- laptop-mode-tools_1.60.orig/install.sh
+++ laptop-mode-tools_1.60/install.sh
@@ -180,15 +180,6 @@ if ( ! $INSTALL -m 744 man/* "$DESTDIR/$
 fi
 
 
-# Install pm-utils hook only if pm-utils config dir is present, or force the
-# install if we have a DESTDIR.
-if [ -n "$DESTDIR" -o -d "$DESTDIR/usr/lib/pm-utils/sleep.d" ] ; then
-	if ( ! $INSTALL -D -m 755 usr/lib/pm-utils/sleep.d/01laptop-mode "$DESTDIR/usr/lib/pm-utils/sleep.d/01laptop-mode" ) ; then
-		echo "$0: Failed to install 01-laptop-mode into /usr/lib/pm-utils/sleep.d. Installation failed."
-		exit 36
-	fi
-fi
-
 if [ -f "$DESTDIR/usr/lib/pm-utils/sleep.d/99laptop-mode" ]; then
 	rm -f $DESTDIR/usr/lib/pm-utils/sleep.d/99laptop-mode;
 fi