Updated config + added connection try (cronjob)
This commit is contained in:
parent
6831ec4dbe
commit
2f905f8168
|
@ -306,6 +306,10 @@ step8(){
|
||||||
echo " (.) Set up WiFi credentials";
|
echo " (.) Set up WiFi credentials";
|
||||||
echo -e "network={\n\tssid=\"$WIFI_SSID\"\n\tpsk=\"$WIFI_PASS\"\n}" | sudo tee -a /mnt/etc/wpa_supplicant/wpa_supplicant.conf > /dev/null;
|
echo -e "network={\n\tssid=\"$WIFI_SSID\"\n\tpsk=\"$WIFI_PASS\"\n}" | sudo tee -a /mnt/etc/wpa_supplicant/wpa_supplicant.conf > /dev/null;
|
||||||
|
|
||||||
|
# (3) Add cronjob to try to connect every hour #
|
||||||
|
echo " (.) Adding connection try daemon";
|
||||||
|
echo -e "0 * * * *\troot\t/bin/systemctl start sats-update.service\n" | sudo tee -a /mnt/etc/crontab > /dev/null;
|
||||||
|
|
||||||
|
|
||||||
echo "<<< done";
|
echo "<<< done";
|
||||||
|
|
||||||
|
|
|
@ -25,4 +25,4 @@ export WAREHOUSE_TOKEN="52131065a906de90e26da0732e58400edd6739cfa03fc658e7593abe
|
||||||
# FOR TESTING ONLY - IF RUN ON LOCAL
|
# FOR TESTING ONLY - IF RUN ON LOCAL
|
||||||
|
|
||||||
# will create an entry in /etc/hosts to user local SMMP
|
# will create an entry in /etc/hosts to user local SMMP
|
||||||
export LOCAL_TEST="192.168.0.15 logauth";
|
export LOCAL_TEST="192.168.0.18 logauth";
|
||||||
|
|
Loading…
Reference in New Issue