2013-11-07 04:25:34 +00:00
|
|
|
#!/bin/bash
|
2013-06-25 21:49:18 +00:00
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-03-29 03:28:22 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2013-06-25 21:49:18 +00:00
|
|
|
# zeroconf should not be activated or it will add a 169.254.0.0
|
|
|
|
# route. The route will interfere with access to the nova metadata
|
|
|
|
# server at 169.254.169.254.
|
|
|
|
if ! grep NOZEROCONF /etc/sysconfig/network ; then
|
|
|
|
echo "NOZEROCONF=yes" >> /etc/sysconfig/network
|
|
|
|
fi
|