apple-fnmode: init at 1.0.0

meow
ptrcnull 2021-04-22 14:34:35 +02:00
parent ed267c73ea
commit 4107517a3c
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=apple-fnmode-openrc
pkgver=1.0.0
pkgrel=0
pkgdesc="Service changing hid_apple fnmode to 2 on boot"
url="https://git.sakamoto.pl/laudompat/alpine-repo"
arch="noarch"
license="MIT"
depends=""
makedepends=""
install=""
subpackages=""
source="apple-fnmode"
builddir="$srcdir/tmp"
options="!check"
package() {
install -Dm755 "$srcdir/apple-fnmode" "$pkgdir/etc/init.d/apple-fnmode"
}
sha512sums="5f9f5396468c70417936d11012c10d2b3d881ce6043a4d3e2301727a62361d3b98afd589a46535776bcf3c084c4163cc3ca8890de03d42c9fb7eb208c3926dfc apple-fnmode"

View File

@ -0,0 +1,7 @@
#!/sbin/openrc-run
description="Sets hid_apple fnmode to 2."
start () {
echo 2 > /sys/module/hid_apple/parameters/fnmode
}