main/postmarketos-boot-hwtest: move openrc scripts to subpackage (MR 5688)
This commit is contained in:
parent
bd431d40cc
commit
0b16918fe0
3 changed files with 13 additions and 4 deletions
|
|
@ -1,12 +1,13 @@
|
|||
pkgname=postmarketos-boot-hwtest
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Boot into a TTY running hwtest"
|
||||
url="https://gitlab.com/MartijnBraam/hwtest"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
depends="hwtest ofono dbus-x11"
|
||||
install="$pkgname.post-install"
|
||||
subpackages="$pkgname-openrc"
|
||||
source="launch_hwtest.sh"
|
||||
options="!check"
|
||||
|
||||
|
|
@ -16,4 +17,11 @@ package() {
|
|||
"$pkgdir"/etc/profile.d/99-hwtest.sh
|
||||
}
|
||||
|
||||
openrc() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel openrc"
|
||||
install="$subpkgname.post-install"
|
||||
|
||||
mkdir -p "$subpkgdir"
|
||||
}
|
||||
|
||||
sha512sums="2fca42f44918af02ee706e84d00c876630b53605c13daf4c79b097a3ae1d7b323ff658964516c0c9bd098d6c61bebaba0e95e48e416490959f75fa88b7fc943e launch_hwtest.sh"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Enable ofono
|
||||
rc-update add ofono default
|
||||
|
|
@ -1,8 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Enable ofono
|
||||
rc-update add ofono default
|
||||
|
||||
# Autologin on tty1, let busybox autoconfigure 2-6
|
||||
autologin="$(getent passwd 10000 | cut -d ":" -f 1)"
|
||||
for i in 1 2 3 4 5 6; do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue