mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update menu-ap
This commit is contained in:
parent
16e43d6bf3
commit
26f09ed616
28
menu/menu-ap
28
menu/menu-ap
|
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
if [ "$(cat /proc/cpuinfo | grep 'Raspberry')" != "" ]; then
|
||||
# menu-ap
|
||||
sudo cat > /bin/menu-ap <<- "EOF"
|
||||
if [ "$(cat /proc/cpuinfo | grep 'Raspberry')" != "" ]; then
|
||||
#!/bin/bash
|
||||
# menu-ap
|
||||
sudo cat > /bin/menu-ap <<- "EOF"
|
||||
#!/bin/bash
|
||||
|
||||
while :
|
||||
do
|
||||
if [ "$(cat /proc/cpuinfo | grep 'Raspberry')" != "" ]; then
|
||||
while :
|
||||
do
|
||||
choix=$(whiptail --title "IP Tools" --menu "Selecciona una opción:" 15 60 6 \
|
||||
1 "Disable auto AP mode" \
|
||||
2 "Enable auto AP mode" \
|
||||
|
|
@ -51,16 +51,16 @@ do
|
|||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
done
|
||||
|
||||
exit 0
|
||||
else
|
||||
exit 0
|
||||
else
|
||||
whiptail --title "IP Tools" --msgbox "Esta opcion solo esta disponible para Raspberry / This option is only available for Raspberry" 0 50
|
||||
exit 0
|
||||
fi
|
||||
EOF
|
||||
fi
|
||||
EOF
|
||||
|
||||
chmod +x /bin/menu-ap
|
||||
ln -sf /bin/menu-ap /bin/MENU-AP
|
||||
chmod +x /bin/MENU*
|
||||
chmod +x /bin/menu-ap
|
||||
ln -sf /bin/menu-ap /bin/MENU-AP
|
||||
chmod +x /bin/MENU*
|
||||
fi
|
||||
Loading…
Reference in New Issue