aboutsummaryrefslogtreecommitdiff
path: root/system/TLP/49tlp
blob: bfe0e81af10f5d0dcd8a2d3ff107c1c56762c642 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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