summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--upstart/cloud-init-nonet.conf8
1 files changed, 5 insertions, 3 deletions
diff --git a/upstart/cloud-init-nonet.conf b/upstart/cloud-init-nonet.conf
index 65b120de..12f21320 100644
--- a/upstart/cloud-init-nonet.conf
+++ b/upstart/cloud-init-nonet.conf
@@ -13,9 +13,11 @@ script
grep -qv '^lo' /var/run/network/ifstate >/dev/null 2>&1 && exit 0
[ -f /var/lib/cloud/instance/obj.pkl ] && exit 0
- sleep 10
- echo $UPSTART_JOB "waiting for a network device."
- sleep 60
+
+ short=10; long=60;
+ sleep ${short}
+ echo $UPSTART_JOB "waiting ${long} seconds for a network device."
+ sleep ${long}
echo $UPSTART_JOB "gave up waiting for a network device."
: > /var/lib/cloud/data/no-net
end script