kopia lustrzana https://github.com/km4ack/pi-build
commit
950b272c2f
|
@ -23,6 +23,9 @@ Please report issues & feature requests here https://github.com/km4ack/pi-build/
|
|||
|
||||
# Available Apps to Install
|
||||
|
||||
####RTC | Real Time Clock
|
||||
Software for DS3231 real time clock
|
||||
|
||||
#### HOTSPOT:
|
||||
Hotspot is used to generate a wifi hotspot that you can connect to with other wireless devices. This is useful when in the field so you can connect to and contol the pi from a wireless device.
|
||||
|
||||
|
|
|
@ -16,13 +16,22 @@ CALL=$(cat $MYDIR/callsign.txt)
|
|||
|
||||
touch $LOG
|
||||
|
||||
if [ $WHO = "root" ]
|
||||
RTC=$(ls $HOME | grep RTC)
|
||||
if [ -z "$RTC" ]
|
||||
then
|
||||
echo "No need for sudo with this script"
|
||||
exit 0
|
||||
echo
|
||||
else
|
||||
echo "##################################################"
|
||||
echo "##########INSTALLING REAL TIME CLOCK"
|
||||
echo "##################################################"
|
||||
sleep 2
|
||||
echo;echo;echo "Please be sure the real time clock is installed on the GPIO pins"
|
||||
read -n 1 -s -r -p "Press any key to continue once the RTC is installed"
|
||||
cd $DIR
|
||||
wget https://raw.githubusercontent.com/km4ack/pi-scripts/master/rtc
|
||||
bash $DIR/rtc
|
||||
fi
|
||||
|
||||
|
||||
##########################################
|
||||
MAIN () {
|
||||
yad --height=600 --width=400 --center --list --checklist --column=Install --column=App --separator="," --text "Select the apps you wish to install." --title="Build-a-Pi by KM4ACK" --button="Exit:1" --button="Install Selected:2" < $MYDIR/addon-app-list > $MYDIR/appchoices
|
||||
|
|
4
app-list
4
app-list
|
@ -1,3 +1,5 @@
|
|||
false
|
||||
RTC
|
||||
true
|
||||
HOTSPOT
|
||||
true
|
||||
|
@ -26,7 +28,7 @@ true
|
|||
AX25
|
||||
true
|
||||
HAMLIB
|
||||
true
|
||||
false
|
||||
PULSE
|
||||
true
|
||||
JS8CALL
|
||||
|
|
12
build-a-pi
12
build-a-pi
|
@ -137,6 +137,14 @@ MAIN
|
|||
|
||||
source $MYDIR/config
|
||||
|
||||
if [ $RTC = "yes" ] > /dev/null 2>&1
|
||||
then
|
||||
sudo sed -i 's/#dtparam=i2c_arm=on/dtparam=i2c_arm=on/' /boot/config.txt
|
||||
touch $HOME/RTC
|
||||
#NOTE: Reboot is required before we can install. We are simply enabling i2c interface &
|
||||
#writing an emptyfile that we can check for in the second part of the install
|
||||
fi
|
||||
|
||||
if [ $HOTSPOT = "yes" ] > /dev/null 2>&1
|
||||
then
|
||||
echo;echo;echo
|
||||
|
@ -176,8 +184,8 @@ echo "##################################################"
|
|||
sleep 2
|
||||
if ! hash pat 2>/dev/null; then
|
||||
cd $DIR
|
||||
wget https://github.com/la5nta/pat/releases/download/v0.8.0/pat_0.8.0_linux_armhf.deb || echo "Can't download Pat Winlink" >> $BUILDLOG
|
||||
sudo dpkg -i $DIR/pat_0.8.0_linux_armhf.deb
|
||||
wget https://github.com/la5nta/pat/releases/download/v0.9.0/pat_0.9.0_linux_armhf.deb || echo "Can't download Pat Winlink" >> $BUILDLOG
|
||||
sudo dpkg -i $DIR/pat_0.9.0_linux_armhf.deb
|
||||
pat http &
|
||||
sudo killall pat
|
||||
sudo systemctl start pat@$WHO
|
||||
|
|
|
@ -12,4 +12,6 @@
|
|||
20200220 include add-wifi script
|
||||
update M0IAX tools to latest version
|
||||
remove old MOIAX tools
|
||||
change date format in conky
|
||||
change date format in conky
|
||||
add real time clock install to app choices
|
||||
update pat winlink to latest version 0.9.0
|
|
@ -1,3 +1,5 @@
|
|||
false
|
||||
RTC
|
||||
true
|
||||
HOTSPOT
|
||||
true
|
||||
|
@ -20,7 +22,7 @@ true
|
|||
AX25
|
||||
true
|
||||
HAMLIB
|
||||
true
|
||||
false
|
||||
PULSE
|
||||
true
|
||||
JS8CALL
|
||||
|
|
Ładowanie…
Reference in New Issue