pmaports/device/main/device-purism-librem5/device-purism-librem5.post-install

14 lines
343 B
Text
Raw Normal View History

#!/bin/sh
# Enable GPS support
sed -i 's|# nmea-socket=/var/run/gps-share.sock|nmea-socket=/var/run/gnss-share.sock|' /etc/geoclue/geoclue.conf
rc-update -qq del gpsd
rc-update -q add gnss-share
# Clean up any old, unneeded legacy u-boot images from /boot
for f in uInitrd uImage; do
[ ! -f "/boot/$f" ] && continue
rm -f "/boot/$f"
done