Skip to content

Commit 40f90ae

Browse files
committed
Add some fixes for Opi zero image
1 parent 498ca95 commit 40f90ae

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- Skip unknown section or key when restoring settings. #336
2121
- Fix space detection in various forms inputs.
2222
- Fix broken form input validation patterns. #353
23+
- Fix some issues with Orange Pi Zero images. #361
2324
### Security
2425
- Update of various python modules.
2526
- Apply some restrictions on RTKBase services. #341

rtkbase_update.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,18 @@ upd_2.4.2() {
310310
echo '####################'
311311
apt-get update -y --allow-releaseinfo-change
312312
apt-get --fix-broken install # needed for old installation (raspi image v2.1 from july 2020)
313+
# only for Orange Pi Zero, disable sysstats-collect (https://github.com/Stefal/build/issues/14)
314+
# and update hostapd if error (https://github.com/Stefal/build/issues/15)
315+
computer_model=$(tr -d '\0' < /sys/firmware/devicetree/base/model)
316+
sbc_array=('Xunlong Orange Pi Zero')
317+
if printf '%s\0' "${sbc_array[@]}" | grep -Fxqz -- "${computer_model}"
318+
then
319+
echo 'Masking sysstat-collect.timer service and upgrading hostapd'
320+
systemctl mask sysstat-collect.timer
321+
dpkg -s hostapd | grep -q 'Version: 2:2.9' && apt-get upgrade hostapd
322+
rm -r /var/log/sysstat/
323+
fi
324+
# end of Orange Pi Zero section
313325
${destination_directory}/tools/install.sh --user "${standard_user}" --dependencies --rtkbase-requirements --unit-files
314326
#upgrade rtklib to b34h
315327
upgrade_rtklib

0 commit comments

Comments
 (0)