Updated config + added connection try (cronjob)

This commit is contained in:
xdrm-brackets 2017-03-10 14:27:28 +01:00
parent 6831ec4dbe
commit 2f905f8168
2 changed files with 5 additions and 1 deletions

View File

@ -306,6 +306,10 @@ step8(){
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;
# (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";

View File

@ -25,4 +25,4 @@ export WAREHOUSE_TOKEN="52131065a906de90e26da0732e58400edd6739cfa03fc658e7593abe
# FOR TESTING ONLY - IF RUN ON LOCAL
# 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";