diff --git a/main/postmarketos-boot-hwtest/APKBUILD b/main/postmarketos-boot-hwtest/APKBUILD index 0dfe690f0..351e4d34a 100644 --- a/main/postmarketos-boot-hwtest/APKBUILD +++ b/main/postmarketos-boot-hwtest/APKBUILD @@ -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" diff --git a/main/postmarketos-boot-hwtest/postmarketos-boot-hwtest-openrc.post-install b/main/postmarketos-boot-hwtest/postmarketos-boot-hwtest-openrc.post-install new file mode 100644 index 000000000..f3cc5122e --- /dev/null +++ b/main/postmarketos-boot-hwtest/postmarketos-boot-hwtest-openrc.post-install @@ -0,0 +1,4 @@ +#!/bin/sh + +# Enable ofono +rc-update add ofono default diff --git a/main/postmarketos-boot-hwtest/postmarketos-boot-hwtest.post-install b/main/postmarketos-boot-hwtest/postmarketos-boot-hwtest.post-install index 2b0c30853..8e9803edf 100644 --- a/main/postmarketos-boot-hwtest/postmarketos-boot-hwtest.post-install +++ b/main/postmarketos-boot-hwtest/postmarketos-boot-hwtest.post-install @@ -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