From 5c243ea0c692f54a7c1540874001a745ac10582c Mon Sep 17 00:00:00 2001 From: Florian Boor Date: Mon, 21 Nov 2005 11:41:15 +0000 Subject: suspend-desktop: New package providing a desktop entry to suspend some devices using apm or the pm helper. --- packages/suspend-desktop/suspend.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 packages/suspend-desktop/suspend.sh (limited to 'packages/suspend-desktop/suspend.sh') diff --git a/packages/suspend-desktop/suspend.sh b/packages/suspend-desktop/suspend.sh new file mode 100644 index 0000000000..990bc09949 --- /dev/null +++ b/packages/suspend-desktop/suspend.sh @@ -0,0 +1,10 @@ +#!/bin/sh +if [ -x /usr/bin/apm ] +then + /usr/bin/apm --suspend +else + if [ -x /usr/bin/pm ] + then + /usr/bin/pm -pp + fi +fi -- cgit v1.2.3