mirror of https://gitlab.com/hp3icc/emq-TE1.git
18 lines
628 B
Bash
18 lines
628 B
Bash
#!/bin/bash
|
|
# Nombre del script
|
|
SCRIPT_NAME="raspberry.sh"
|
|
|
|
# Registra el inicio en /opt/curl.txt
|
|
echo "Inicio: $SCRIPT_NAME" >> /opt/curl.txt
|
|
if [ "$(cat /proc/cpuinfo | grep 'Raspberry')" != "" ]; then
|
|
rfkill unblock wlan
|
|
sudo apt-get install raspi-config -y
|
|
sudo wget --no-cache -O /etc/init.d/move_nmconnection.sh https://gitlab.com/hp3icc/emq-TE1/-/raw/main/install/move_nmconnection.sh
|
|
sudo chmod +x /etc/init.d/move_nmconnection.sh
|
|
sudo update-rc.d move_nmconnection.sh defaults
|
|
else
|
|
#systemctl disable autoap.service
|
|
echo ""
|
|
fi
|
|
# Registra el final en /opt/curl.txt
|
|
echo "Finalizado: $SCRIPT_NAME" >> /opt/curl.txt |