added config file

This commit is contained in:
xdrm-brackets 2017-01-22 20:30:21 +01:00
parent b64351060c
commit d736f68281
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,10 @@
#!/bin/sh #!/bin/sh
echo ">>> Loading configuration file"
sh ./clone.conf || $(echo "<<< error"; exit);
echo "<<< done";
[ ! -e ./tmp -o ! -d ./tmp ] && mkdir ./tmp; [ ! -e ./tmp -o ! -d ./tmp ] && mkdir ./tmp;
[ ! -e ./server -o ! -d ./server ] && mkdir ./server; [ ! -e ./server -o ! -d ./server ] && mkdir ./server;
[ ! -e ./server/maintenance -o ! -d ./server/maintenance ] && mkdir ./server/maintenance; [ ! -e ./server/maintenance -o ! -d ./server/maintenance ] && mkdir ./server/maintenance;
@ -268,7 +273,7 @@ step8(){
step9(){ step9(){
echo "\n>>> [9] Set up WiFi configuration"; 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 "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";

4
clone/clone.conf Normal file
View File

@ -0,0 +1,4 @@
# WIFI SETTINGS
export WIFI_SSID="some-wifi-ssid";
export WIFI_PASS="some-wifi-password";