diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-02-18 23:28:14 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-02-18 23:28:14 -0500 |
commit | bd6994b299b20c28ec4221dc732cdb3f1480d58d (patch) | |
tree | 9adad219857d8c191d038cd6c4bcb2f7b64990f4 | |
parent | 3e8114e3b8b349396f2cef6b6223dbd7f0ee15f2 (diff) | |
download | vyos-cloud-init-bd6994b299b20c28ec4221dc732cdb3f1480d58d.tar.gz vyos-cloud-init-bd6994b299b20c28ec4221dc732cdb3f1480d58d.zip |
in nonet wait, print how long wait will be.
-rw-r--r-- | upstart/cloud-init-nonet.conf | 8 |
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 |