файлы для pi-star

This commit is contained in:
ua1zbe 2024-01-30 23:15:00 +03:00
parent bc5a6c29e5
commit dac8b78773
38 changed files with 121 additions and 0 deletions

BIN
bin/AMBEserver Normal file

Binary file not shown.

BIN
bin/APRSGateway Normal file

Binary file not shown.

BIN
bin/DGIdGateway Normal file

Binary file not shown.

BIN
bin/DMR2NXDN Normal file

Binary file not shown.

BIN
bin/DMR2YSF Normal file

Binary file not shown.

BIN
bin/DMRGateway Normal file

Binary file not shown.

BIN
bin/M17Gateway Normal file

Binary file not shown.

BIN
bin/MMDVMCal Normal file

Binary file not shown.

BIN
bin/MMDVMHost Normal file

Binary file not shown.

BIN
bin/MMDVMHost_Adafruit Normal file

Binary file not shown.

BIN
bin/MobileGPS Normal file

Binary file not shown.

BIN
bin/NXDN2DMR Normal file

Binary file not shown.

BIN
bin/NXDNGateway Normal file

Binary file not shown.

BIN
bin/NXDNParrot Normal file

Binary file not shown.

BIN
bin/NextionDriver Normal file

Binary file not shown.

BIN
bin/P25Gateway Normal file

Binary file not shown.

BIN
bin/P25Parrot Normal file

Binary file not shown.

BIN
bin/RemoteCommand Normal file

Binary file not shown.

BIN
bin/YSF2DMR Normal file

Binary file not shown.

BIN
bin/YSF2NXDN Normal file

Binary file not shown.

BIN
bin/YSF2P25 Normal file

Binary file not shown.

BIN
bin/YSFGateway Normal file

Binary file not shown.

BIN
bin/YSFParrot Normal file

Binary file not shown.

BIN
bin/aprstransmitd Normal file

Binary file not shown.

4
bin/apt Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
mount -o remount,rw /
mount -o remount,rw /boot
/usr/bin/apt "$@"

4
bin/apt-get Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
mount -o remount,rw /
mount -o remount,rw /boot
/usr/bin/apt-get "$@"

4
bin/aptitude Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
mount -o remount,rw /
mount -o remount,rw /boot
/usr/bin/aptitude "$@"

3
bin/avrdude Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
sudo strace -o "|autoreset" -eioctl /usr/bin/avrdude $@

BIN
bin/config_clean.zip Normal file

Binary file not shown.

4
bin/dpkg Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
mount -o remount,rw /
mount -o remount,rw /boot
/usr/bin/dpkg "$@"

BIN
bin/dstarrepeaterd Normal file

Binary file not shown.

102
bin/platformDetect.sh Normal file
View File

@ -0,0 +1,102 @@
#! /bin/bash
#
# Return the version of the Raspberry Pi we are running on
# Written by Andy Taylor (MW0MWZ)
#
# Pull the CPU Model from /proc/cpuinfo
modelName=$(grep 'model name' /proc/cpuinfo | sed 's/.*: //')
hardwareField=$(grep 'Hardware' /proc/cpuinfo | sed 's/.*: //')
if [ -f /proc/device-tree/model ]; then
raspberryModel=$(tr -d '\0' </proc/device-tree/model)
fi
if [[ ${modelName} == "ARM"* ]]; then
# Pull the Board revision from /proc/cpuinfo
boardRev=$(grep 'Revision' /proc/cpuinfo | awk '{print $3}' | sed 's/^100//')
# Make the board revision human readable
case $boardRev in
*0002) raspberryVer="Model B Rev 1.0 (256MB)";;
*0003) raspberryVer="Model B Rev 1.0 + ECN0001 (no fuses, D14 removed) (256MB)";;
*0004) raspberryVer="Model B Rev 2.0 (256MB)";;
*0005) raspberryVer="Model B Rev 2.0 (256MB)";;
*0006) raspberryVer="Model B Rev 2.0 (256MB)";;
*0007) raspberryVer="Model A Mounting holes (256MB)";;
*0008) raspberryVer="Model A Mounting holes (256MB)";;
*0009) raspberryVer="Model A Mounting holes (256MB)";;
*000d) raspberryVer="Model B Rev 2.0 (512MB)";;
*000e) raspberryVer="Model B Rev 2.0 (512MB)";;
*000f) raspberryVer="Model B Rev 2.0 (512MB)";;
*0010) raspberryVer="Model B+ Rev 1.0 (512MB)";;
*0011) raspberryVer="CM1 Rev 1.0 (512MB)";;
*0012) raspberryVer="Model A+ Rev 1.1 (256MB)";;
*0013) raspberryVer="Model B+ Rev 1.2 (512MB)";;
*0014) raspberryVer="CM1 Rev 1.0 (512MB)";;
*0015) raspberryVer="Model A+ Rev 1.1";;
*900021) raspberryVer="Model A+ Rev 1.1 (512MB)";;
*900032) raspberryVer="Model B+ Rev 1.2 (512MB)";;
*900092) raspberryVer="Pi Zero Rev 1.2 (512MB)";;
*900093) raspberryVer="Pi Zero Rev 1.3 (512MB)";;
*9000c1) raspberryVer="Pi Zero W Rev 1.1 (512MB)";;
*9020e0) raspberryVer="Pi 3 Model A+ (512MB) - Sony, UK";;
*920092) raspberryVer="Pi Zero Rev 1.2 (512MB)";;
*920093) raspberryVer="Pi Zero Rev 1.3 (512MB)";;
*900061) raspberryVer="CM1 Rev 1.1";;
*a01040) raspberryVer="Pi 2 Model B (1GB) - Sony, UK";;
*a01041) raspberryVer="Pi 2 Model B (1GB) - Sony, UK";;
*a02042) raspberryVer="Pi 2 Model B (1GB) - Sony, UK";;
*a02082) raspberryVer="Pi 3 Model B (1GB) - Sony, UK";;
*a020a0) raspberryVer="CM3 Rev 1.0 (1GB)";;
*a020d3) raspberryVer="Pi 3 Model B+ (1GB) - Sony, UK";;
*a21041) raspberryVer="Pi 2 Model B (1GB) - Embest, CH";;
*a22042) raspberryVer="Pi 2 Model B (1GB) - Embest, CH";;
*a22082) raspberryVer="Pi 3 Model B (1GB) - Embest, CH";;
*a220a0) raspberryVer="CM3 Rev 1.0 (1GB)";;
*a32082) raspberryVer="Pi 3 Model B (1GB) - Sony, JPN";;
*a52082) raspberryVer="Pi 3 Model B (1GB) - Stadium";;
*a22083) raspberryVer="Pi 3 Model B (1GB) - Embest";;
*a02100) raspberryVer="CM3+ Rev 1.0 (1GB)";;
*a03111) raspberryVer="Pi 4 Model B Rev 1.1 (1GB) - Sony, UK";;
*b03111) raspberryVer="Pi 4 Model B Rev 1.1 (2GB) - Sony, UK";;
*b03112) raspberryVer="Pi 4 Model B Rev 1.2 (2GB) - Sony, UK";;
*b03114) raspberryVer="Pi 4 Model B Rev 1.4 (2GB) - Sony, UK";;
*c03111) raspberryVer="Pi 4 Model B Rev 1.1 (4GB) - Sony, UK";;
*c03112) raspberryVer="Pi 4 Model B Rev 1.2 (4GB) - Sony, UK";;
*c03114) raspberryVer="Pi 4 Model B Rev 1.4 (4GB) - Sony, UK";;
*d03114) raspberryVer="Pi 4 Model B Rev 1.4 (8GB) - Sony, UK";;
*c03130) raspberryVer="Pi 400 Rev 1.0 (4GB) - Sony, UK";;
*a03140) raspberryVer="CM4 Rev 1.0 (1GB)";;
*b03140) raspberryVer="CM4 Rev 1.0 (2GB)";;
*c03140) raspberryVer="CM4 Rev 1.0 (4GB)";;
*d03140) raspberryVer="CM4 Rev 1.0 (8GB)";;
*) raspberryVer="Unknown ARM based System";;
esac
if [[ ${hardwareField} == "ODROID"* ]]; then
echo "Odroid XU3/XU4 System"
elif [[ ${hardwareField} == *"sun8i"* ]]; then
echo "sun8i based Pi Clone"
elif [[ ${hardwareField} == *"s5p4418"* ]]; then
echo "Samsung Artik"
elif [[ ${raspberryModel} == "Raspberry"* ]]; then
echo ${raspberryModel}
else
echo $raspberryVer
fi
elif [[ ${hardwareField} == *"sun8i"* ]]; then
echo "sun8i based Pi Clone"
else
echo "Generic "`uname -p`" class computer"
fi
# workaround to check if user stuck on pistar-update v3.3 or v3.4, if yes then force update now
if grep -q 'Version 3.3,\|Version 3.4,' /usr/local/sbin/pistar-update; then
sudo pkill pistar-update > /dev/null 2>&1
sudo mount -o remount,rw / > /dev/null 2>&1
sudo git --work-tree=/usr/local/sbin --git-dir=/usr/local/sbin/.git pull origin master > /dev/null 2>&1
sudo rm -f /usr/local/sbin/pistar-upnp.service > /dev/null 2>&1
sudo git --work-tree=/usr/local/sbin --git-dir=/usr/local/sbin/.git reset --hard origin/master > /dev/null 2>&1
fi

BIN
bin/remotecontrold Normal file

Binary file not shown.

BIN
bin/teensy_loader_cli Normal file

Binary file not shown.

BIN
bin/texttransmitd Normal file

Binary file not shown.

BIN
bin/timercontrold Normal file

Binary file not shown.

BIN
bin/timeserverd Normal file

Binary file not shown.

BIN
bin/voicetransmitd Normal file

Binary file not shown.