From 7ab124422cfd4a77eab41ee9df0d9c969a85f10e Mon Sep 17 00:00:00 2001 From: dougb Date: Sun, 23 Aug 2009 19:52:47 +0000 Subject: Prior to the dire warning about values of network_interfaces other than AUTO the biggest mistake users made was leaving lo0 off the list. Since lo0 is effectively mandatory, check for it and add it to the list if it's not there. --- etc/network.subr | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'etc') diff --git a/etc/network.subr b/etc/network.subr index c149854..f3a8560 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -727,6 +727,13 @@ list_net_interfaces() ;; *) _tmplist="${network_interfaces} ${cloned_interfaces}" + + # lo0 is effectively mandatory, so help prevent foot-shooting + # + case "$_tmplist" in + lo0*|*lo0|*' lo0 '*) ;; # This is fine, do nothing + *) _tmplist="lo0 ${_tmplist}" ;; + esac ;; esac -- cgit v1.1