Sfoglia il codice sorgente

Configuration MDP et Wi-Fi

master
heuzef 5 anni fa
parent
commit
9509108f65
1 ha cambiato i file con 9 aggiunte e 10 eliminazioni
  1. +9
    -10
      install.sh

+ 9
- 10
install.sh Vedi File

@@ -41,16 +41,15 @@ adduser allo-gg sudo
echo allo-gg:$allogg_psw | chpasswd
echo root:$allogg_psw | chpasswd

# Connexion sur le Wi-FI
#cat /etc/wpa_supplicant/wpa_supplicant.conf
#ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
#update_config=1
#country=FR
#
#network={
# ssid="heuzef"
# psk="heuzef"
#}
# Configuration du Wi-FI
echo "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev" > /etc/wpa_supplicant/wpa_supplicant.conf
echo "update_config=1" >> /etc/wpa_supplicant/wpa_supplicant.conf
echo "country=FR" >> /etc/wpa_supplicant/wpa_supplicant.conf
echo >> /etc/wpa_supplicant/wpa_supplicant.conf
echo "network={" >> /etc/wpa_supplicant/wpa_supplicant.conf
echo ' ssid="'$wifi_ssid'"' >> /etc/wpa_supplicant/wpa_supplicant.conf
echo ' psk="'$wifi_psw'"' >> /etc/wpa_supplicant/wpa_supplicant.conf
echo "}" >> /etc/wpa_supplicant/wpa_supplicant.conf

# Execution automatique de bash a la connexion
echo "bash" >> /home/allo-gg/.profile


Caricamento…
Annulla
Salva