forked from EA7KDO/NX4832K035
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnxupdate.sh
executable file
·26 lines (25 loc) · 1.11 KB
/
nxupdate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#############################################################
# Support for Nextion screen, update pistar and install #
# BC. BC is used to offload caculatons from trying to do #
# them in the display. Script can also be used to install #
# other programs by addding them here. Update stripped.csv #
# KF6S 04-10-2019 #
#############################################################
set -o errexit
set -o pipefail
# Run Pistar update script before adding BC
sudo pistar-update
# Set to R/W becuase pi-star update will try and set R/O
sudo mount -o remount,rw /
# Update files needed for new Nextion functions
sudo apt-get install bc
# Check and Remove Nextion_Temp if it exists
sudo rm -f -r /home/pi-star/Nextion_Temp
# Check and Remove usr/local/etc/NX4832K035.tft if it exists
sudo rm -f /usr/local/etc/NX4832K035.tft
# Give the user an easy way to update DMR ID database called stripped.csv
sudo rm -f /usr/local/etc/stripped.csv
sudo wget -O /usr/local/etc/stripped.csv https://database.radioid.net/static/user.csv
# set to R/O when finished
sudo mount -o remount,ro /;