aboutsummaryrefslogtreecommitdiff
path: root/system/TLP/49tlp
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2019-04-07 22:44:43 +0530
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-04-13 06:30:33 +0700
commit2da3606262095b637a9773df2930b25c95a6aca5 (patch)
treeb14024e4f497985d8d979fae4ffed5b995ba2599 /system/TLP/49tlp
parent9603c05d179a46358b3734a2e9d61f831d613a57 (diff)
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 000000000000..bfe0e81af10f
--- /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