From de311713a433f1cc86235a3ca07f40bdcfc59852 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 25 Jan 2017 19:14:02 +0100 Subject: [PATCH] fixed 'source' command to load config --- clone/clone | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clone/clone b/clone/clone index d68d8c5..3b00ec1 100755 --- a/clone/clone +++ b/clone/clone @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash echo ">>> Loading configuration file"; source clone.conf; @@ -268,6 +268,9 @@ step7(){ step8(){ echo "\n>>> [8] Set up WiFi configuration"; + echo $WIFI_SSID; + echo "network={\n\tssid=\"${WIFI_SSID}\"\n\tpsk=\"$WIFI_PASS\"\n}"; + exit; echo "network={\n\tssid=\"$WIFI_SSID\"\n\tpsk=\"$WIFI_PASS\"\n}" | sudo tee -a /mnt/etc/wpa_supplicant/wpa_supplicant.conf > /dev/null; echo "<<< done"; @@ -363,6 +366,5 @@ case $step in "7") step7;; "8") step8;; "9") step9;; - "10") step10;; *) echo "wrong step"; exit;; esac;