main/hisi-wlan: new aport (MR 2221)

This commit is contained in:
Ignacy Kuchciński 2021-06-03 00:48:36 +02:00 committed by Oliver Smith
parent b22a9e3e4f
commit bd32516522
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 38 additions and 0 deletions

18
main/hisi-wlan/APKBUILD Normal file
View file

@ -0,0 +1,18 @@
# Maintainer Ignacy Kuchciński <ignacykuchcinski@gmail.com>
pkgname=hisi-wlan
pkgver=1
pkgrel=0
pkgdesc="Init script for enabling hisi wlan driver (downstream Android kernels)"
url="https://gitlab.com/postmarketOS/pmaports"
arch="noarch"
license="GPL-3.0-or-later"
install="$pkgname.post-install"
source="$pkgname.initd"
options="!check" # No tests
package() {
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/hisi-wlan
}
sha512sums="
e4ef68edc2690af26a565a45437d40543469d7bbf68f53ad4d4aa87d852ea6546a4148953e8691860a34a2552052d08fd70136fb7fb3032c37d7323cc7aea415 hisi-wlan.initd
"

View file

@ -0,0 +1,16 @@
#!/sbin/openrc-run
description="Initialize hisi wlan driver"
depend()
{
need udev
before wpa_supplicant
}
start()
{
ebegin "Enabling wlan driver"
echo init > /sys/hisys/boot/plat
echo init > /sys/hisys/boot/wifi
}

View file

@ -0,0 +1,4 @@
#!/bin/sh
# Enable hisi-wlan init script
rc-update add hisi-wlan default