fixed 'source' command to load config
This commit is contained in:
parent
09f75847bb
commit
de311713a4
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
echo ">>> Loading configuration file";
|
echo ">>> Loading configuration file";
|
||||||
source clone.conf;
|
source clone.conf;
|
||||||
|
@ -268,6 +268,9 @@ step7(){
|
||||||
step8(){
|
step8(){
|
||||||
echo "\n>>> [8] Set up WiFi configuration";
|
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 "network={\n\tssid=\"$WIFI_SSID\"\n\tpsk=\"$WIFI_PASS\"\n}" | sudo tee -a /mnt/etc/wpa_supplicant/wpa_supplicant.conf > /dev/null;
|
||||||
|
|
||||||
echo "<<< done";
|
echo "<<< done";
|
||||||
|
@ -363,6 +366,5 @@ case $step in
|
||||||
"7") step7;;
|
"7") step7;;
|
||||||
"8") step8;;
|
"8") step8;;
|
||||||
"9") step9;;
|
"9") step9;;
|
||||||
"10") step10;;
|
|
||||||
*) echo "wrong step"; exit;;
|
*) echo "wrong step"; exit;;
|
||||||
esac;
|
esac;
|
||||||
|
|
Loading…
Reference in New Issue