mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update mmdvm.sh
This commit is contained in:
parent
ca29164923
commit
6ccaf2accd
|
|
@ -37,8 +37,19 @@ sudo systemctl enable monp.service
|
|||
# MMDVMHost
|
||||
#################################################################################################################################
|
||||
|
||||
sudo apt-get install git make build-essential libusb-1.0-0-dev python python3 python3-pip chkconfig -y
|
||||
sudo apt-get install build-essential git-core libi2c-dev i2c-tools lm-sensors -y
|
||||
apps=("git" "make" "build-essential" "libusb-1.0-0-dev" "python" "python3" "python3-pip" "chkconfig" "git-core" "libi2c-dev" "i2c-tools" "lm-sensors")
|
||||
|
||||
for app in "${apps[@]}"
|
||||
do
|
||||
# Verificar apps
|
||||
if ! dpkg -s "$app" >/dev/null 2>&1; then
|
||||
# app no instalada
|
||||
sudo apt-get install -y "$app"
|
||||
else
|
||||
# app ya instalada
|
||||
echo "$app ya instalada"
|
||||
fi
|
||||
done
|
||||
|
||||
mkdir /var/log/mmdvmh
|
||||
|
||||
|
|
@ -494,13 +505,24 @@ EOF
|
|||
# MMDVMHost - Dashboard WebSocket
|
||||
#################################################################################################################################
|
||||
#web
|
||||
sudo apt install python3-pip -y
|
||||
sudo apt install python3-websockets
|
||||
sudo pip3 install ansi2html
|
||||
sudo apt install python3-gpiozero -y
|
||||
sudo apt install python3-psutil
|
||||
sudo apt-get install python3-serial
|
||||
|
||||
apps=("python3-pip" "python3-websockets" "python3-gpiozero" "python3-psutil" "python3-serial")
|
||||
|
||||
for app in "${apps[@]}"
|
||||
do
|
||||
# Verificar apps
|
||||
if ! dpkg -s "$app" >/dev/null 2>&1; then
|
||||
# app no instalada
|
||||
sudo apt-get install -y "$app"
|
||||
else
|
||||
# app ya instalada
|
||||
echo "$app ya instalada"
|
||||
fi
|
||||
done
|
||||
|
||||
if ! command -v ansi2html &> /dev/null; then
|
||||
pip3 install ansi2html
|
||||
fi
|
||||
sudo adduser --system --no-create-home --group mmdvm
|
||||
|
||||
cd /opt/
|
||||
|
|
|
|||
Loading…
Reference in New Issue