main/hisi-wlan: new aport (MR 2221)
This commit is contained in:
parent
b22a9e3e4f
commit
bd32516522
3 changed files with 38 additions and 0 deletions
18
main/hisi-wlan/APKBUILD
Normal file
18
main/hisi-wlan/APKBUILD
Normal 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
|
||||
"
|
16
main/hisi-wlan/hisi-wlan.initd
Normal file
16
main/hisi-wlan/hisi-wlan.initd
Normal 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
|
||||
}
|
4
main/hisi-wlan/hisi-wlan.post-install
Normal file
4
main/hisi-wlan/hisi-wlan.post-install
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Enable hisi-wlan init script
|
||||
rc-update add hisi-wlan default
|
Loading…
Reference in a new issue