powersave-openrc: new aport

This commit is contained in:
ptrcnull 2022-01-02 05:17:55 +01:00
parent f02cfdf1ec
commit a10aef7094
2 changed files with 23 additions and 0 deletions

18
powersave-openrc/APKBUILD Normal file
View file

@ -0,0 +1,18 @@
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=powersave-openrc
pkgver=1.0.0
pkgrel=0
pkgdesc="Set CPU scaling governor to 'powersave'"
url="https://git.ddd.rip/ptrcnull/aports"
arch="noarch"
license="MIT"
source="powersave"
options="!check"
package() {
install -Dm755 "$srcdir"/powersave "$pkgdir"/etc/init.d/powersave
}
sha512sums="
a52246892c128b0de80a2fbf3c92bbe8c5cbc1ff4a87f4826818c9fc8503bf063c61c3c7119335b27272016850b1880b43621ca415e4f75b07e2be98a87203b5 powersave
"

View file

@ -0,0 +1,5 @@
#!/sbin/openrc-run
start() {
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
}