01febf4f0b
Using uInitrd is no longer necessary. I'm not sure *why*, but it just works using the non-u-boot-image initramfs. The post-upgrade script was changed to clean up the old images from /boot/u{Image,Initrd}, restoring a lot of free space in that partition (~25MB) This also sneaks in a small 1 character change to silence removing the gpsd service from the default runlevel [ci:skip-build]: already built successfully in CI
13 lines
343 B
Bash
13 lines
343 B
Bash
#!/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
|