commit 92f5b358ec0d31aa3c432358c3ae8a36b45b50a4
parent 2c0eda6ccc493ed6910f04a54c1bf7671807ccac
Author: St John Karp <contact@stjo.hn>
Date: Wed, 13 Jul 2022 15:08:06 -0400
svc: Add tlp script
Add a script to run tlp. This isn't actually a service but something
that just has to be run at regular intervals to update the current
mode appropriately.
Diffstat:
4 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/core/svc/build b/core/svc/build
@@ -21,6 +21,7 @@ touch "$1/usr/bin/svc.d/avail/ntpd"
touch "$1/usr/bin/svc.d/avail/pcscd"
touch "$1/usr/bin/svc.d/avail/sdhcp"
touch "$1/usr/bin/svc.d/avail/seatd"
+install -D tlp "$1/usr/bin/svc.d/avail/tlp"
touch "$1/usr/bin/svc.d/avail/wpa_supplicant"
chmod +x "$1/usr/bin/svc.d/avail"/*
diff --git a/core/svc/checksums b/core/svc/checksums
@@ -1 +1,2 @@
c67b9dc66c7c2d843ceb6f025a190218df9e5051aca0b932dad58a55159e327c
+b18f6e06bd12dae2a1e2b08ee203b40eb3b74d8cd40260b24ad03ec81945962d
diff --git a/core/svc/files/tlp b/core/svc/files/tlp
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+case $1 in
+ -s)
+ tlp init start
+ ;;
+ -k)
+ tlp init stop
+ ;;
+ *)
+ echo "usage: $0 -s|-k"
+ exit 1
+esac
+
diff --git a/core/svc/sources b/core/svc/sources
@@ -1,2 +1,3 @@
git+git://r-36.net/svc
files/nldev
+files/tlp