From 1691f5157d66ecb13cb0d58daf49a278305f117a Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Fri, 1 Feb 2019 18:32:37 -0800 Subject: [PATCH] device-purism-librem5dev: enable gps support (!192) --- device/device-purism-librem5dev/APKBUILD | 4 ++-- .../device-purism-librem5dev.post-install | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/device/device-purism-librem5dev/APKBUILD b/device/device-purism-librem5dev/APKBUILD index 39b49caf3..550e09bc5 100644 --- a/device/device-purism-librem5dev/APKBUILD +++ b/device/device-purism-librem5dev/APKBUILD @@ -2,12 +2,12 @@ pkgname="device-purism-librem5dev" pkgdesc="Purism Librem 5 Devkit" pkgver=0.2 -pkgrel=0 +pkgrel=1 url="https://postmarketos.org" license="MIT" arch="aarch64" options="!check !archcheck" -depends="postmarketos-base linux-purism-librem5dev uboot-tools u-boot-librem5dev" +depends="postmarketos-base linux-purism-librem5dev uboot-tools u-boot-librem5dev gpsd" makedepends="devicepkg-dev" source=" deviceinfo diff --git a/device/device-purism-librem5dev/device-purism-librem5dev.post-install b/device/device-purism-librem5dev/device-purism-librem5dev.post-install index 4523b3664..f859165b8 100755 --- a/device/device-purism-librem5dev/device-purism-librem5dev.post-install +++ b/device/device-purism-librem5dev/device-purism-librem5dev.post-install @@ -2,3 +2,7 @@ ## Run getty on serial port sed -i -e "s/#ttyS0::respawn:\/sbin\/getty -L ttyS0 115200 vt100/ttymxc0::respawn:\/sbin\/getty -L ttymxc0 115200 vt100/" /etc/inittab +# Enable GPS support +rc-update add gpsd default +sed -i 's/DEVICE=\"\"/DEVICE=\"\/dev\/ttymxc2\"/' /etc/conf.d/gpsd +sed -i 's/BAUDRATE=\"4800\"/BAUDRATE=\"9600\"/' /etc/conf.d/gpsd