From 9d1037cb790e3f0db1274cd42632517e9f3ec0e6 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Sat, 3 Jun 2023 09:30:01 +0000 Subject: [PATCH] Update menu.sh --- menu.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/menu.sh b/menu.sh index 48d6872..41e3d74 100644 --- a/menu.sh +++ b/menu.sh @@ -1,5 +1,10 @@ sudo cat > /bin/menu-py-aprs <<- "EOF" #!/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 choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu Python-APRS" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion:" 23 56 13 \ 1 " Editar Beacon-1 " \