main/deviceinfo-converter: profile.d script fixes

* Fix referencing non-existing variable
* Don't pollute shell variables with deviceinfo by sourcing in a
  subshell and only setting the environment variable.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8076>
This commit is contained in:
Luca Weiss 2026-02-25 09:50:54 +01:00 committed by The Friendly Meow (merge) Bot
parent be0fe2076a
commit d755b4ddd7
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View file

@ -1,7 +1,7 @@
maintainer="Aster Boese <asterboese@mailbox.org>"
pkgname=deviceinfo-converter
pkgver=0.2.1
pkgrel=0
pkgrel=1
pkgdesc="Generator for Lomiri deviceinfo files based on postmarketOS deviceinfo"
url="https://codeberg.org/JustSoup321/deviceinfo-converter"
arch="all"
@ -23,5 +23,5 @@ package() {
sha512sums="
59409d8187d75da4d09a462692e59cbb8403fbeccae1cc9d4fe2937adf97403ab01a0d16fd2d692ef1afa2771dbc4e13bc199bdb9de9f35be92029344fd0bb84 deviceinfo-converter-0.2.1.tar.gz
95e639d402446352bcb7a8c5b2f353e38697d3e81d814f2f40638ce83f7ccc898d22c436f0fd2599827fdfae2134fce572257f739f42eeb4c628441c27fc3467 deviceinfo-converter.sh
409550ba534e8c3741f5974d1630302de968fb4c72422c926e024af20ed76af7fb3a07670c48802b29f1cc09cad6e23b1ada474becdc4a789ff06c42f87a6730 deviceinfo-converter.sh
"

View file

@ -1,2 +1 @@
. /usr/share/misc/source_deviceinfo
export DEVICEINFO_DEVICE_NAME="$device_codename"
export DEVICEINFO_DEVICE_NAME="$(. /usr/share/misc/source_deviceinfo; echo "$deviceinfo_codename")"