From f53e1c4da9a934a7fea3f618db09eee2a2967bb4 Mon Sep 17 00:00:00 2001 From: hazen2215 Date: Tue, 15 Nov 2022 07:07:28 +0900 Subject: [PATCH] tlp: add zzz resume/suspend hooks --- srcpkgs/tlp/files/tlp.resume | 2 ++ srcpkgs/tlp/files/tlp.suspend | 2 ++ srcpkgs/tlp/template | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/tlp/files/tlp.resume create mode 100644 srcpkgs/tlp/files/tlp.suspend diff --git a/srcpkgs/tlp/files/tlp.resume b/srcpkgs/tlp/files/tlp.resume new file mode 100644 index 000000000000..7a53e86b0eaa --- /dev/null +++ b/srcpkgs/tlp/files/tlp.resume @@ -0,0 +1,2 @@ +#!/bin/sh +tlp resume diff --git a/srcpkgs/tlp/files/tlp.suspend b/srcpkgs/tlp/files/tlp.suspend new file mode 100644 index 000000000000..39250f309262 --- /dev/null +++ b/srcpkgs/tlp/files/tlp.suspend @@ -0,0 +1,2 @@ +#!/bin/sh +tlp suspend diff --git a/srcpkgs/tlp/template b/srcpkgs/tlp/template index dbfc33f2b68f..cbd1eb070fe2 100644 --- a/srcpkgs/tlp/template +++ b/srcpkgs/tlp/template @@ -1,7 +1,7 @@ # Template file for 'tlp' pkgname=tlp version=1.5.0 -revision=1 +revision=2 depends="hdparm bash iw util-linux ethtool perl" short_desc="Advanced power management tool for Linux" maintainer="Alan Brown " @@ -31,6 +31,8 @@ do_install() { rm -f ${DESTDIR}/usr/share/man/man8/*.service.8 vsv tlp + vinstall ${FILESDIR}/tlp.resume 755 /etc/zzz.d/resume 50-tlp.sh + vinstall ${FILESDIR}/tlp.suspend 755 /etc/zzz.d/suspend 50-tlp.sh rm -rf ${DESTDIR}/etc/init.d }