File laptop-mode-1.53-install_sh.diff of Package laptop-mode-tools

Index: laptop-mode-tools_1.49/install.sh
================================================================================
@@ -276,9 +277,9 @@
 
 if [ "$INIT_D" != "none" ] ; then
 	if [ -d "$INIT_D" -o -n "$DESTDIR" ] ; then
-		$INSTALL -d -m 755 "$INIT_D"
-		if ( ! $INSTALL -m 755 etc/init.d/laptop-mode "$INIT_D" ) ; then
-			echo "$0: failed to install init script in $INIT_D. Installation failed."
+		$INSTALL -d -m 755 "$DESTDIR/$INIT_D"
+		if ( ! $INSTALL -m 755 etc/init.d/laptop-mode "$DESTDIR/$INIT_D" ) ; then
+			echo "$0: failed to install init script in $DESTDIR/$INIT_D. Installation failed."
 			exit 16
 		fi
 		if [ -f "$DESTDIR/etc/rcS.d/S99laptop_mode" ] ; then
openSUSE Build Service is sponsored by