Index: scripts/run.sh =================================================================== diff -u -r3ad21b53b6b15cc0c88661cf17ba454fe0a302b1 -r936ed882bee8169edec9fe24cbd4e49ccca667d9 --- scripts/run.sh (.../run.sh) (revision 3ad21b53b6b15cc0c88661cf17ba454fe0a302b1) +++ scripts/run.sh (.../run.sh) (revision 936ed882bee8169edec9fe24cbd4e49ccca667d9) @@ -9,7 +9,7 @@ # @file run.sh # # @author (last) Behrouz NematiPour -# @date (last) 2-Aug-2021 +# @date (last) 11-Aug-2021 # @author (original) Behrouz NematiPour # @date (original) 28-Oct-2019 # @@ -105,9 +105,9 @@ #it should not be confused with date command which is system date/time and not hwclock hwclock -r # if there is any issue with rtc hwclock will show errors if [ $? -eq 0 ]; then - RTC1=$(cat /sys/class/rtc/rtc/since_epoch) + RTC1=$(cat /sys/class/rtc/rtc0/since_epoch) sleep 1 - RTC2=$(cat /sys/class/rtc/rtc/since_epoch) + RTC2=$(cat /sys/class/rtc/rtc0/since_epoch) if [ $(($RTC2 - $RTC1)) -eq 1 ]; then echo $POSTMSG_RTC >> $POSTLOG fi @@ -131,10 +131,13 @@ $HOME/denali -u & -# setup wifi -udhcpc -i eth0 -n & - - # tag the end time in the POST log file echo "End: $(date +"%d%m%Y%H%M%S")" >> $POSTLOG + +# setup ethernet +# note: At this time the application is running and also the ehternet connection is not necessary +# so the sleep here is not hurtung any part of the applicaion progress. +sleep 10 +udhcpc eth0 & +