From c32ced2cfe8fbfa52759c8dabaa8a2c162ed031c Mon Sep 17 00:00:00 2001 From: Alex Oprea Date: Mon, 9 May 2016 15:19:08 +0200 Subject: [PATCH] iup: delay iup224 untill dns is reacheable refs #9073 --- iup/files/sbin/iup224 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iup/files/sbin/iup224 b/iup/files/sbin/iup224 index dd128c1ab..330427cc3 100755 --- a/iup/files/sbin/iup224 +++ b/iup/files/sbin/iup224 @@ -1,6 +1,7 @@ #!/bin/sh . /usr/share/libubox/jshn.sh +. /lib/network/config.sh if [ -z $1 ] ; then echo "No argument" @@ -67,6 +68,7 @@ if [ $url ] && [ $active -eq 1 ]; then fi if [ "$softwareminuspath" == "${softwareminuspath/$firmware1/}" -o "$softwareminuspath" == "${softwareminuspath/$firmware2/}" ] ; then echo "Image found $url will start flashing" + wait_for_dns $url /sbin/sysupgrade -v $url & exit 1 else