Ticket: CM-14362
Reviewed By: Roopa, Nikhil G
Testing Done:
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
# Generic stuff done on all configurations
if [ -f /etc/network/interfaces ] ; then
- if ! grep -q "^[[:space:]]*iface[[:space:]]\+lo0\?[[:space:]]\+inet[[:space:]]\+loopback\>" /etc/network/interfaces ; then
+ if ! grep -q -E "^[[:space:]]*iface[[:space:]]+l[o0]([[:space:]]+inet([[:space:]]+loopback)?)?[[:space:]]*$" /etc/network/interfaces ; then
report_warn "No 'iface lo' definition found in /etc/network/interfaces"
fi