mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
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.
This commit is contained in:
parent
01318abc57
commit
6913541fe4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196478
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user