Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
laptop-mode-tools
laptop-mode-1.49-install_sh.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File laptop-mode-1.49-install_sh.diff of Package laptop-mode-tools
Index: laptop-mode-tools_1.49/install.sh =================================================================== --- laptop-mode-tools_1.49.orig/install.sh +++ laptop-mode-tools_1.49/install.sh @@ -180,13 +180,14 @@ 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/etc/pm/sleep.d" ] ; then - if ( ! $INSTALL -D -m 755 etc/pm/sleep.d/99laptop-mode "$DESTDIR/etc/pm/sleep.d" ) ; then - echo "$0: Failed to install 99-laptop-mode into /etc/pm/sleep.d. Installation failed." +if [ -n "$DESTDIR" -o -d "$DESTDIR/usr/lib/pm-utils/sleep.d" ] ; then + # I don't think that this is the first thing that needs to run after resume, so i prio'd it down -- seife + if ( ! $INSTALL -D -m 755 etc/pm/sleep.d/99laptop-mode "$DESTDIR/usr/lib/pm-utils/sleep.d/05laptop-mode" ) ; then + echo "$0: Failed to install 99-laptop-mode into /usr/lib/pm-utils/sleep.d. Installation failed." exit 36 fi fi @@ -274,13 +275,13 @@ if [ $APM_DONE -eq 0 -a $ACPI_DONE -eq 0 echo "Install either acpid, apmd, pbbuttonsd or pmud (depending on what your laptop supports) and reinstall." fi 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 # Old symlink. rm "$DESTDIR/etc/rcS.d/S99laptop-mode"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor