Update install.sh

merge-requests/1/head
RaspbianProyect by HP3ICC 3 years ago
parent 2e7746fd0d
commit f355e71945

@ -64,6 +64,14 @@ then
#echo "found file" #echo "found file"
fi fi
mkdir /var/log/FreeDMR mkdir /var/log/FreeDMR
if [ -f "/bin/menu-fdmr" ];
then
rm /bin/menu-fdmr
#echo "found file"
else
echo "file not found"
fi
######################## ########################
if [ -f "/opt/obp.txt" ] if [ -f "/opt/obp.txt" ]
then then
@ -675,7 +683,7 @@ Restart=on-abort
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
# #
sudo cat > /bin/menu <<- "EOF" sudo cat > /bin/menu-fdmr <<- "EOF"
#!/bin/bash #!/bin/bash
while : ; do while : ; do
choix=$(whiptail --title "Raspbian Proyect HP3ICC FDMR+" --menu "move up or down with the keyboard arrows and select your option by pressing enter:" 23 56 13 \ choix=$(whiptail --title "Raspbian Proyect HP3ICC FDMR+" --menu "move up or down with the keyboard arrows and select your option by pressing enter:" 23 56 13 \
@ -742,8 +750,8 @@ done
exit 0 exit 0
EOF EOF
### ###
chmod +x /bin/menu chmod +x /bin/menu-fdmr
ln -s /bin/menu /bin/MENU ln -s /bin/menu-fdmr /bin/MENU-FDMR
############################# #############################
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl start freedmr.service sudo systemctl start freedmr.service
@ -755,4 +763,5 @@ sudo systemctl enable fdmr_mon.service
sudo systemctl start fdmrparrot.service sudo systemctl start fdmrparrot.service
sudo systemctl enable fdmrparrot.service sudo systemctl enable fdmrparrot.service
sudo systemctl start http.server-fdmr.service sudo systemctl start http.server-fdmr.service
sudo systemctl enable http.server-fdmr.service sudo systemctl enable http.server-fdmr.service
menu-fdmr

Loading…
Cancel
Save

Powered by TurnKey Linux.