summaryrefslogtreecommitdiffstats
path: root/system/TLP/49tlp
diff options
context:
space:
mode:
author Aaditya Bagga2019-04-07 19:14:43 +0200
committer Willy Sudiarto Raharjo2019-04-13 01:30:33 +0200
commit2da3606262095b637a9773df2930b25c95a6aca5 (patch)
treeb14024e4f497985d8d979fae4ffed5b995ba2599 /system/TLP/49tlp
parent9603c05d179a46358b3734a2e9d61f831d613a57 (diff)
downloadslackbuilds-2da3606262095b637a9773df2930b25c95a6aca5.tar.gz
system/TLP: updated for version 1.2.1.
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