|
|
@@ -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 |
|
|
|