Pārlūkot izejas kodu

Configuration MDP et Wi-Fi

master
heuzef pirms 5 gadiem
vecāks
revīzija
9509108f65
1 mainītis faili ar 9 papildinājumiem un 10 dzēšanām
  1. +9
    -10
      install.sh

+ 9
- 10
install.sh Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt