summaryrefslogtreecommitdiff
path: root/recipes/suspend-desktop/suspend.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/suspend-desktop/suspend.sh')
-rw-r--r--recipes/suspend-desktop/suspend.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/suspend-desktop/suspend.sh b/recipes/suspend-desktop/suspend.sh
new file mode 100644
index 0000000000..990bc09949
--- /dev/null
+++ b/recipes/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