Skip to content

Commit

Permalink
Workaround if ethernet is not detected due to invalid RTC clock
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Sep 10, 2015
1 parent 829acf5 commit a5f353e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/armhwinfo
Expand Up @@ -27,6 +27,13 @@ case "$1" in
start)
# ARM

# fix for eth0 no brought up
if [ "$(hwclock -r)" == "" ]; then
echo -e "[\e[0;32m ok \x1B[0m] Fixing RTC and reloading eth0"
date -s "2015-01-01 10:00:00"
hwclock -w
ifup eth0
fi


for i in $( lsblk -idn -o NAME ); do
Expand Down

0 comments on commit a5f353e

Please sign in to comment.