Lines 179-198
Link Here
|
179 |
exit 23 |
179 |
exit 23 |
180 |
fi |
180 |
fi |
181 |
|
181 |
|
182 |
|
|
|
183 |
# Install pm-utils hook only if pm-utils config dir is present, or force the |
184 |
# install if we have a DESTDIR. |
185 |
if [ -n "$DESTDIR" -o -d "$DESTDIR/usr/lib/pm-utils/sleep.d" ] ; then |
186 |
if ( ! $INSTALL -D -m 755 usr/lib/pm-utils/sleep.d/01laptop-mode "$DESTDIR/usr/lib/pm-utils/sleep.d/01laptop-mode" ) ; then |
187 |
echo "$0: Failed to install 01-laptop-mode into /usr/lib/pm-utils/sleep.d. Installation failed." |
188 |
exit 36 |
189 |
fi |
190 |
fi |
191 |
|
192 |
if [ -f "$DESTDIR/usr/lib/pm-utils/sleep.d/99laptop-mode" ]; then |
193 |
rm -f $DESTDIR/usr/lib/pm-utils/sleep.d/99laptop-mode; |
194 |
fi |
195 |
|
196 |
# udev rule |
182 |
# udev rule |
197 |
if ( ! $INSTALL -D -m 644 etc/rules/99-laptop-mode.rules "$DESTDIR/etc/udev/rules.d/99-laptop-mode.rules" ) ; then |
183 |
if ( ! $INSTALL -D -m 644 etc/rules/99-laptop-mode.rules "$DESTDIR/etc/udev/rules.d/99-laptop-mode.rules" ) ; then |
198 |
echo "$0: Failed to install udev rule into /etc/udev/rules.d/ Installation failed." |
184 |
echo "$0: Failed to install udev rule into /etc/udev/rules.d/ Installation failed." |