Fix wifi setup

This commit is contained in:
xdrm-brackets 2017-01-25 17:40:10 +01:00
parent e7c43aee91
commit 5f46dd67bd
3 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -1,7 +1,7 @@
#!/bin/sh
echo ">>> Loading configuration file"
source clone.conf || $(echo "<<< error"; exit);
echo ">>> Loading configuration file";
source clone.conf;
echo "<<< done";
@ -270,7 +270,7 @@ step8(){
# (1) Create link in order to be handled #
echo " (.) Emulate \`systemctl set-default multi-user.target\`";
#sudo ln -fs /lib/systemd/system/multi-user.target /mnt/etc/systemd/system/default.target;
sudo ln -fs /lib/systemd/system/multi-user.target /mnt/etc/systemd/system/default.target;
# (2) Link autologin to tty service #
echo " (.) Link autologin script to tty's default";
@ -295,7 +295,7 @@ step8(){
step9(){
echo "\n>>> [9] Set up WiFi configuration";
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";

0
clone/clone.conf Normal file → Executable file
View File