From b9459fecf3dbe179358df1001ea05b075689d10d Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Wed, 22 Feb 2023 02:06:32 +0000 Subject: [PATCH] Update update.sh --- update.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 2ac508e..9aa1493 100644 --- a/update.sh +++ b/update.sh @@ -13,7 +13,8 @@ choix=$(whiptail --title "Raspbian Proyect HP3ICC FDMR+" --menu "move up or down 6 " Start-Restart FDMR-Monitor " \ 7 " Stop FreeDMR SERVER " \ 8 " Stop FDMR-Monitor " \ -9 " Menu update " 3>&1 1>&2 2>&3) +9 " D-APRS " \ +10 " Menu update " 3>&1 1>&2 2>&3) exitstatus=$? #on recupere ce choix #exitstatus=$? @@ -72,6 +73,8 @@ sudo systemctl disable fdmr_mon.service sudo systemctl stop http.server-fdmr.service sudo systemctl disable http.server-fdmr.service;; 9) +menu-igate ;; +10) sh -c "$(curl -fsSL https://gitlab.com/hp3icc/fdmr/-/raw/main/update.sh)"; esac done @@ -79,7 +82,15 @@ exit 0 EOF ### chmod +x /bin/menu-fdmr +#### +if [ -d "/opt/D-APRS" ] +then + echo "found file" +elif + sh -c "$(curl -fsSL https://raw.githubusercontent.com/hp3icc/D-APRS/main/emq-daprs.sh)" +fi +#### sudo cat > /bin/menu-update <<- "EOF" #!/bin/bash while : ; do