File: hibernate.sh

package info (click to toggle)
acpi-support 0.137-5
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,008 kB
  • ctags: 9
  • sloc: sh: 1,330; makefile: 58; ansic: 51
file content (12 lines) | stat: -rw-r--r-- 215 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# TODO:  Above should be /bin/sh

test -f /usr/share/acpi-support/state-funcs || exit 0

. /etc/default/acpi-support

if [ x$ACPI_HIBERNATE != xtrue ] && [ x$1 != xforce ]; then
  exit;
fi

pm-hibernate