Hi Andrew.
What's the status on #545250 and #572396? Has this been forgotten? ;)
Attached another patch, if you didn't like the previous one, but that one
was better IIRC.
Chris.
* This patch makes the postscript not warn, if either a "auto lo" or an
"allow-auto lo" statement is present in /etc/network/interfaces.
"auto" and "allow-auto" are synonymous according to the manpage.
--- a/debian/postinst
+++ b/debian/postinst
@@ -107,8 +107,8 @@
if ! grep -q "^[[:space:]]*iface[[:space:]]\+lo[[:space:]]\+inet[[:space:]]\+loopback\>" /etc/network/interfaces ; then
report_warn "No 'iface lo' definition found in /etc/network/interfaces"
fi
- if ! grep -q "^[[:space:]]*auto[[:space:]].*\<lo\>" /etc/network/interfaces ; then
- report_warn "No 'auto lo' statement found in /etc/network/interfaces"
+ if ! grep -q "^[[:space:]]*\(auto\|allow-auto\)[[:space:]].*\<lo\>" /etc/network/interfaces ; then
+ report_warn "No 'auto lo' or 'allow-auto lo' statement found in /etc/network/interfaces"
fi
else # ! -f /etc/network/interfaces
echo "Creating /etc/network/interfaces."