1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

Improve the case test to detect the presence of lo0 in the list of

network_interfaces.

Submitted by:	Christoph Mallon <christoph.mallon@gmx.de>
This commit is contained in:
Doug Barton 2009-08-24 22:05:08 +00:00
parent 1dc6903b78
commit b7084131de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196523

View File

@ -731,7 +731,7 @@ list_net_interfaces()
# lo0 is effectively mandatory, so help prevent foot-shooting
#
case "$_tmplist" in
lo0*|*lo0|*' lo0 '*) ;; # This is fine, do nothing
lo0|'lo0 '*|*' lo0'|*' lo0 '*) ;; # This is fine, do nothing
*) _tmplist="lo0 ${_tmplist}" ;;
esac
;;