mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update ipv6on-custom.sh
This commit is contained in:
parent
132250a5e0
commit
050c1a7f4b
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
cat > /bin/ipv6on-custom.sh <<- "EOF"
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
# Verificar si el usuario tiene permisos de root
|
# Verificar si el usuario tiene permisos de root
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
|
|
@ -31,3 +33,8 @@ whiptail --title "Reinicio Requerido" --msgbox "* Debe reiniciar para aplicar lo
|
||||||
# Reiniciar para aplicar los cambios
|
# Reiniciar para aplicar los cambios
|
||||||
echo "Reboot..."
|
echo "Reboot..."
|
||||||
sudo reboot
|
sudo reboot
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
sudo chmod +x /bin/ipv6on-custom.sh
|
||||||
|
sh /bin/ipv6on-custom.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue