~ubuntu-branches/ubuntu/wily/acpi-support/wily

« back to all changes in this revision

Viewing changes to resume.d/35-modules-load.sh

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2009-04-27 10:08:23 UTC
  • Revision ID: james.westby@ubuntu.com-20090427100823-ngqo38hwxxuc8mim
Tags: 0.122
* sleep.sh, hibernate.sh:
  - Don't use custom suspend/hibernate solution.  Instead, call pm-utils.
    LP: #366119
* prepare.sh, resume.sh, resume.d, suspend.d:
  - Delete; no longer used
* debian/dirs, debian/rules:
  - Don't install resume.d and suspend.d directories
* debian/control:
  - Depend on pm-utils
* debian/preinst:
  - Remove any existing resume.d and suspend.d files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# Increase the firmware loading timeout while we're doing this
4
 
# Otherwise, swap thrash tends to lead to failure to start
5
 
if [ -f /sys/class/firmware/timeout ]; then
6
 
    timeout=`cat /sys/class/firmware/timeout`
7
 
    echo 100 >/sys/class/firmware/timeout
8
 
fi
9
 
 
10
 
# Load any drivers that we removed
11
 
for x in $MODULES; do
12
 
    modprobe $x;
13
 
done
14
 
 
15
 
# And reset the firmware timeout
16
 
if [ -f /sys/class/firmware/timeout ]; then
17
 
    echo $timeout >/sys/class/firmware/timeout
18
 
fi
19
 
 
20
 
# And bring back PCMCIA code
21
 
[ -x /sbin/pccardctl ] && pccardctl insert