Index: scripts/run.sh =================================================================== diff -u -r389f028cb9d4d320eae393de7c4408a58a619356 -rf45f4093470d79f74c79f5a162bff598215b5dda --- scripts/run.sh (.../run.sh) (revision 389f028cb9d4d320eae393de7c4408a58a619356) +++ scripts/run.sh (.../run.sh) (revision f45f4093470d79f74c79f5a162bff598215b5dda) @@ -19,8 +19,8 @@ time_start=$(date +%s) echo nameserver 8.8.8.8 > /etc/resolv.conf -echo nameserver 192.168.10.20 >> /etc/resolv.conf -echo nameserver 192.168.10.21 >> /etc/resolv.conf +echo nameserver 192.168.10.20 >> /etc/resolv.conf # these need to be removed when/if the IoT WiFi doens't need them +echo nameserver 192.168.10.21 >> /etc/resolv.conf # these need to be removed when/if the IoT WiFi doens't need them systemctl start systemd-resolved.service @@ -54,11 +54,10 @@ #setting up ethernet----------------------- Ethernet post_log_dash " Ethernet " ieth=eth0 -udhcpc --timeout=5 --retries=1 -n -i $ieth +udhcpc --timeout=5 --retries=2 -n -i $ieth post_log "$(ip addr show $ieth)" # -details -statistics - #setting up can interface ----------------- CANBus post_log_dash " CANBus " #current settings can be retrieved by the command below @@ -123,8 +122,8 @@ post_log "$(dmesg | grep -i wlan:)" # start the wpa_supplicant service - systemctl start wpa_supplicant@$iwlan.service post_log "start wpa_supplicant service" + systemctl start wpa_supplicant@$iwlan.service if [ $? -eq 0 ]; then post_log_pass "$POSTMSG_WIFI$POSTMSG_POSTFIX_PASSED [service]" # try to connect to WiFi @@ -191,7 +190,7 @@ # ----------------------------------------- Cloud post_log_dash " CloudSystem " post_log "$(ip addr show $iwlan)" # -details -statistics -post_log "$(ping device-api.diality.qa.kebormed.com -I $iwlan -c 3 -4)" +post_log "$(ping www.diality.com -I $iwlan -c 3 -4)" post_log_dash " CloudSync " if [ -d $HOME/$CLOUDSYNC_FOLDER ]; then @@ -224,13 +223,7 @@ DENALI_VERSION="$($HOME/$DENALI_BIN -v)" if [ -n "$DENALI_VERSION" ]; then post_log_pass "$($HOME/$DENALI_BIN -v)" # log UI Software version - # Note: - # The denali application needs to run with -E for the first time during manufacturing. - # Ther need to be an indication in the application itself to go to the manufacturing mode (-E). - # otherwise on each update it want to set to -E mode - # a good indication would be the Service Password, and it will be implemented soon. - # The -E has been removed for now from run.sh to prevent the situation mentioned above. - $HOME/$DENALI_BIN -Kauk -R # -E & # -K & + $HOME/$DENALI_BIN else post_log_fail "Unknown Applicaion Version" fi