From 86499bbb38bffaa2d8250e80ce7eb763a526295d Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 21 Jan 2017 17:44:12 +0100 Subject: [PATCH] Added wifi configuration --- clone/clone | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/clone/clone b/clone/clone index 11b3fd7..cf57446 100755 --- a/clone/clone +++ b/clone/clone @@ -253,6 +253,15 @@ step8(){ # [9] Manage Network config #========================================================# +step9(){ + echo "\n>>> [9] Set up WiFi configuration"; + + echo "network={\n\tssid=\"freeboxma\"\n\tpsk=\" manon adrien \"\n}" | sudo tee -a /mnt/etc/wpa_supplicant/wpa_supplicant.conf > /dev/null; + + echo "<<< done"; + + step10; +} @@ -267,6 +276,7 @@ echo "(5) Update users"; echo "(6) Update groups"; echo "(7) Manage ssh keys"; echo "(8) Set up automatic sats-user login"; +echo "(9) Set up WiFi config"; read -p "step: " step; case $step in @@ -278,5 +288,6 @@ case $step in "6") step6;; "7") step7;; "8") step8;; + "9") step9;; *) echo "wrong step"; exit;; esac;