Skip to content

Commit

Permalink
Fix #436
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefal committed Oct 5, 2024
1 parent 1f405db commit bb01287
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.6.2] - Unreleased
### Fixed
- Remove firstboot service on Raspberry Pi image >= 2.5 which was causing services to stay stopped after a reboot. #436
- Autorefresh timeout is now 90s. #426
## [2.6.1] - 2024-08-26
### Changed
- More tests before installing prebuilt RTKLib cli tools.
Expand Down
2 changes: 1 addition & 1 deletion settings.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[general]
# Version
version=2.6.1
version=2.6.2
# Rtkbase upgrade mandatory "checkpoint"
checkpoint_version=2.7.0
# User who runs str2str_file service
Expand Down
18 changes: 18 additions & 0 deletions tools/rtkbase_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,24 @@ upd_2.6.0() {
then
"${destination_directory}"/tools/install.sh --user "${standard_user}" --rtklib
fi
upd_2.6.1 "$@"
}

upd_2.6.1() {
#Remove firstboot service from the Raspberry 2.5 and 2.6 images
#This service should have been removed after the first boot, but
# wasn't and was stopping various RTKBase services at each boot.
if [[ -f /etc/os-release ]]
then
source /etc/os-release
fi

if [[ $ID == debian ]] && systemctl list-units firstboot.service
then
systemctl disable --now firstboot.service
rm /lib/systemd/system/firstboot.service
systemctl daemon-reload
fi
}

#check if we can apply the update
Expand Down

0 comments on commit bb01287

Please sign in to comment.