commit 511fcba09f0dcbc6e3d3ff3edf3a7ec4cde373c5
parent 5f8728aa8c584d2383ec0cb6ee42515c54f01463
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Sat, 29 Oct 2022 01:53:20 +0200
Add tlp oneshot
Diffstat:
2 files changed, 36 insertions(+), 12 deletions(-)
diff --git a/s6-rc.aat b/s6-rc.aat
@@ -262,18 +262,24 @@ m640
|runscript_simple("alsactl-rdaemon", "alsactl rdaemon")
|add_to_bundle("ok-all-but-tty", "brightness")
-/brightness d m750
-/brightness/type cN oneshot m640
+|oneshot("brightness", "ok-sysinit")
/brightness/up
CN foreground { redirfd -w 1 /sys/class/backlight/intel_backlight/brightness echo 800 }
if { chgrp users /sys/class/backlight/intel_backlight/brightness }
chmod g+w /sys/class/backlight/intel_backlight/brightness
-m640
+m644
+
+|add_to_bundle("ok-all-but-tty", "tlp")
+|oneshot("tlp", "ok-sysinit")
+/tlp/up
+CN tlp init start
+m644
+/tlp/finish
+CN tlp init stop
+m644
|add_to_bundle("ok-all-but-tty", "containers")
-/containers d m750
-/containers/dependencies cN ok-mount m640
-/containers/type cN oneshot m640
+|oneshot("containers", "ok-mount")
/containers/up
CN export TERM "linux"
if {
diff --git a/s6-rc.fileset b/s6-rc.fileset
@@ -777,17 +777,34 @@ CN #!/command/execlineb -P
alsactl rdaemon
m755
-/brightness d m750
-/brightness/type cN oneshot m640
+/brightness d m755
+/brightness/type cN oneshot m644
+/brightness/dependencies
+C ok-sysinit
+m644
/brightness/up
CN foreground { redirfd -w 1 /sys/class/backlight/intel_backlight/brightness echo 800 }
if { chgrp users /sys/class/backlight/intel_backlight/brightness }
chmod g+w /sys/class/backlight/intel_backlight/brightness
-m640
+m644
-/containers d m750
-/containers/dependencies cN ok-mount m640
-/containers/type cN oneshot m640
+/tlp d m755
+/tlp/type cN oneshot m644
+/tlp/dependencies
+C ok-sysinit
+m644
+/tlp/up
+CN tlp init start
+m644
+/tlp/finish
+CN tlp init stop
+m644
+
+/containers d m755
+/containers/type cN oneshot m644
+/containers/dependencies
+C ok-mount
+m644
/containers/up
CN export TERM "linux"
if {
@@ -1121,6 +1138,7 @@ C net-all
sshd
alsactl-rdaemon
brightness
+ tlp
containers
svscan-ccx
syncthing