Skip to content

Commit bb01287

Browse files
committed
Fix #436
1 parent 1f405db commit bb01287

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [2.6.2] - Unreleased
4+
### Fixed
5+
- Remove firstboot service on Raspberry Pi image >= 2.5 which was causing services to stay stopped after a reboot. #436
6+
- Autorefresh timeout is now 90s. #426
37
## [2.6.1] - 2024-08-26
48
### Changed
59
- More tests before installing prebuilt RTKLib cli tools.

settings.conf.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[general]
44
# Version
5-
version=2.6.1
5+
version=2.6.2
66
# Rtkbase upgrade mandatory "checkpoint"
77
checkpoint_version=2.7.0
88
# User who runs str2str_file service

tools/rtkbase_update.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,24 @@ upd_2.6.0() {
207207
then
208208
"${destination_directory}"/tools/install.sh --user "${standard_user}" --rtklib
209209
fi
210+
upd_2.6.1 "$@"
211+
}
212+
213+
upd_2.6.1() {
214+
#Remove firstboot service from the Raspberry 2.5 and 2.6 images
215+
#This service should have been removed after the first boot, but
216+
# wasn't and was stopping various RTKBase services at each boot.
217+
if [[ -f /etc/os-release ]]
218+
then
219+
source /etc/os-release
220+
fi
221+
222+
if [[ $ID == debian ]] && systemctl list-units firstboot.service
223+
then
224+
systemctl disable --now firstboot.service
225+
rm /lib/systemd/system/firstboot.service
226+
systemctl daemon-reload
227+
fi
210228
}
211229

212230
#check if we can apply the update

0 commit comments

Comments
 (0)