Plateforme Agir Low-Tech

Commit 432b322a authored by davidmercereau's avatar davidmercereau
Browse files

#8 bug wifi corrigé dans le rc.local

parent 33fc2a6f
#!/bin/bash
# Si l'utilisateur à déposé un fichier wpa_supplicant.conf dans boot
if [ -f /boot/wpa_supplicant.conf ]; then
fs_mode=$(mount | sed -n -e "s/^.* on \/ .*(\(r[w|o]\).*/\1/p")
if [ "$fs_mode" == "ro" ]; then
/bin/mount -o remount,rw /
fi
cat /boot/wpa_supplicant.conf > /etc/wpa_supplicant/wpa_supplicant.conf
rm /boot/wpa_supplicant.conf
if ! (($?)); then
/sbin/reboot
fi
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment