~ubuntu-branches/ubuntu/quantal/pm-utils/quantal-proposed

« back to all changes in this revision

Viewing changes to pm/sleep.d/95led

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-04-17 00:16:37 UTC
  • mto: (1.1.6 upstream) (2.1.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: james.westby@ubuntu.com-20090417001637-ee2oj301tz06rp4f
ImportĀ upstreamĀ versionĀ 1.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
# IBM specific hook to handle the suspend LED.
3
 
# TODO: Merge with 05led.
 
2
# On an IBM system. make the suspend LED blink.
 
3
# TODO: Merge with 95led?  Should be trivial.
4
4
 
5
5
[ -f /proc/acpi/ibm/led ] || exit $NA
6
6
 
7
7
case "$1" in
8
 
        thaw|resume)
 
8
        hibernate|suspend)
9
9
                echo "7 blink" >/proc/acpi/ibm/led
10
10
                ;;
11
 
        *)
 
11
        thaw|resume) 
 
12
                echo "7 off" >/proc/acpi/ibm/led
 
13
                ;;
 
14
        *) exit $NA
12
15
                ;;
13
16
esac
14
 
 
15
 
exit $NA