diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-02-18 18:50:50 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-02-18 18:50:50 -0500 |
commit | 3c22860e3144dbd7683d0b1742279f66478820e2 (patch) | |
tree | 227dd7204e88e3760437a04e69d0cf66eb19e870 /upstart | |
parent | 98b7f2e6d44d251d4a74e759dc84777fca15f5c6 (diff) | |
download | vyos-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.conf | 2 |
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 |