diff options
author | Doug Barton <dougb@FreeBSD.org> | 2009-08-23 19:52:47 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2009-08-23 19:52:47 +0000 |
commit | 6913541fe4e3e70fc838fe1a722712bbe187ed1c (patch) | |
tree | 4069abedacf099eaa1b9f5b049d2114aa0b6e7e7 /etc/network.subr | |
parent | 01318abc57a6012fc71129351d6e1a2ce3e2feb4 (diff) | |
download | src-6913541fe4e3e70fc838fe1a722712bbe187ed1c.tar.gz src-6913541fe4e3e70fc838fe1a722712bbe187ed1c.zip |
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.
Notes
Notes:
svn path=/head/; revision=196478
Diffstat (limited to 'etc/network.subr')
-rw-r--r-- | etc/network.subr | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/network.subr b/etc/network.subr index c14985473e9d..f3a85603bf56 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 |