summaryrefslogtreecommitdiff
path: root/system/TLP/49tlp
diff options
context:
space:
mode:
Diffstat (limited to 'system/TLP/49tlp')
-rw-r--r--system/TLP/49tlp22
1 files changed, 22 insertions, 0 deletions
diff --git a/system/TLP/49tlp b/system/TLP/49tlp
new file mode 100644
index 0000000000..bfe0e81af1
--- /dev/null
+++ b/system/TLP/49tlp
@@ -0,0 +1,22 @@
+#!/bin/sh
+# tlp - handle suspend/hibernate/resume tasks
+#
+# Copyright (c) 2018 Thomas Koch <linrunner at gmx.net>
+# This software is licensed under the GPL v2 or later.
+
+. "${PM_FUNCTIONS}"
+
+case $1 in
+ hibernate|suspend)
+ tlp suspend
+ ;;
+
+ thaw|resume)
+ tlp resume
+ ;;
+
+ *) exit $NA
+ ;;
+esac
+
+exit 0