Update install.sh
This commit is contained in:
parent
643fca9f8a
commit
16ee4db745
10
install.sh
10
install.sh
|
|
@ -1,5 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [[ $EUID -ne 0 ]]; then
|
||||||
|
whiptail --title "Python APRS WX" --msgbox "Debe ejecutar este script como usuario ROOT" 0 50
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
apps=("python3")
|
apps=("python3")
|
||||||
|
|
||||||
for app in "${apps[@]}"
|
for app in "${apps[@]}"
|
||||||
|
|
@ -130,6 +133,11 @@ EOF
|
||||||
###########################
|
###########################
|
||||||
sudo cat > /bin/menu-py-wx <<- "EOF"
|
sudo cat > /bin/menu-py-wx <<- "EOF"
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [[ $EUID -ne 0 ]]; then
|
||||||
|
whiptail --title "sudo su" --msgbox "requiere ser usuario root , escriba (sudo su) antes de entrar a menu / requires root user, type (sudo su) before entering menu" 0 50
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
while : ; do
|
while : ; do
|
||||||
choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu Python-WX" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion:" 23 56 15 \
|
choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu Python-WX" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion:" 23 56 15 \
|
||||||
1 " Editar WX-1 " \
|
1 " Editar WX-1 " \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue