device-purism-librem5dev: enable gps support (!192)

This commit is contained in:
Clayton Craft 2019-02-01 18:32:37 -08:00 committed by Oliver Smith
parent bbcc878e4f
commit 1691f5157d
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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