File: 95led

package info (click to toggle)
pm-utils 1.4.1-18
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,432 kB
  • sloc: sh: 3,069; xml: 1,035; makefile: 174; ansic: 152
file content (18 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# On an IBM system. make the suspend LED blink.
# TODO: Merge with 95led?  Should be trivial.

[ -f /proc/acpi/ibm/led ] || exit $NA

case "$1" in
	hibernate|suspend)
		echo "7 blink" >/proc/acpi/ibm/led
		;;
	thaw|resume) 
		echo "7 off" >/proc/acpi/ibm/led
		;;
	*) exit $NA
		;;
esac

exit 0