emq-TE1/service/service.sh

51 lines
2.4 KiB
Bash

#!/bin/sh
sudo systemctl stop analog_bridge.service
sudo systemctl stop system/mmdvm_bridge.service
sudo systemctl stop system/ysfgateway.service
sudo systemctl stop system/ysfparrot.service
sudo systemctl stop system/nxdngateway.service
sudo systemctl stop system/nxdnparrot.service
sudo systemctl stop system/p25gateway.service
sudo systemctl stop system/p25parrot.service
sudo systemctl stop system/quantar_bridge.service
sudo systemctl stop system/ircddbgatewayd.service
sudo systemctl stop system/md380-emu.service
#
rm /lib/systemd/system/analog_bridge.service
rm /lib/systemd/system/mmdvm_bridge.service
rm /lib/systemd/system/ysfgateway.service
rm /lib/systemd/system/ysfparrot.service
rm /lib/systemd/system/nxdngateway.service
rm /lib/systemd/system/nxdnparrot.service
rm /lib/systemd/system/p25gateway.service
rm /lib/systemd/system/p25parrot.service
rm /lib/systemd/system/quantar_bridge.service
rm /lib/systemd/system/ircddbgatewayd.service
rm /lib/systemd/system/md380-emu.service
cd /lib/systemd/system/
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/analog_bridge.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/mmdvm_bridge.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/ysfgateway.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/ysfparrot.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/nxdngateway.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/nxdnparrot.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/p25gateway.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/p25parrot.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/quantar_bridge.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/ircddbgatewayd.service
wget https://raw.githubusercontent.com/hp3icc/emq-TE1ws/main/service/md380-emu.service
#
sudo systemctl daemon-reload
sudo systemctl start analog_bridge.service
sudo systemctl start mmdvm_bridge.service
sudo systemctl start ysfgateway.service
sudo systemctl start ysfparrot.service
sudo systemctl start nxdngateway.service
sudo systemctl start nxdnparrot.service
sudo systemctl start p25gateway.service
sudo systemctl start p25parrot.service
sudo systemctl start quantar_bridge.service
sudo systemctl start ircddbgatewayd.service
sudo systemctl start md380-emu.service