summaryrefslogtreecommitdiff
path: root/upstart
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-02-18 18:50:50 -0500
committerScott Moser <smoser@ubuntu.com>2011-02-18 18:50:50 -0500
commit3c22860e3144dbd7683d0b1742279f66478820e2 (patch)
tree227dd7204e88e3760437a04e69d0cf66eb19e870 /upstart
parent98b7f2e6d44d251d4a74e759dc84777fca15f5c6 (diff)
downloadvyos-cloud-init-3c22860e3144dbd7683d0b1742279f66478820e2.tar.gz
vyos-cloud-init-3c22860e3144dbd7683d0b1742279f66478820e2.zip
cloud-init-nonet.conf: redirect grep to /dev/null, so it doesn't go
to console on missing file
Diffstat (limited to 'upstart')
-rw-r--r--upstart/cloud-init-nonet.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/upstart/cloud-init-nonet.conf b/upstart/cloud-init-nonet.conf
index 2ac98286..65b120de 100644
--- a/upstart/cloud-init-nonet.conf
+++ b/upstart/cloud-init-nonet.conf
@@ -10,7 +10,7 @@ console output
script
# if a non 'lo' interface is up, exit immediately
- grep -qv '^lo' /var/run/network/ifstate && exit 0
+ grep -qv '^lo' /var/run/network/ifstate >/dev/null 2>&1 && exit 0
[ -f /var/lib/cloud/instance/obj.pkl ] && exit 0
sleep 10