fix ifconfig data matching in info::guest_networking

The description field uses '/' as separator since 52a504e.

close #471
This commit is contained in:
Nicolas Martyanoff
2022-08-02 08:01:46 +02:00
parent 714475f556
commit 0c291329b9

View File

@@ -368,9 +368,9 @@ info::guest_networking(){
if [ "${_RUN}" = "1" ]; then
config::get "_switch" "network${_num}_switch"
_int=$(ifconfig | grep -B1 "vmnet-${_name}-${_num}-" | head -n1 | cut -d' ' -f1,6)
_int=$(ifconfig | grep -B1 "vmnet/${_name}/${_num}/" | head -n1 | cut -d' ' -f1,6)
_id=${_int%%:*}
_tag=$(ifconfig | grep "vmnet-${_name}-${_num}-" | cut -d' ' -f2)
_tag=$(ifconfig | grep "vmnet/${_name}/${_num}/" | cut -d' ' -f2)
info::__find_bridge "_bridge" "${_id}"