mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-09 18:07:50 +08:00
Update network.sh
This commit is contained in:
parent
d4bf83ae86
commit
2684c737b0
@ -239,7 +239,7 @@ configureNAT() {
|
|||||||
|
|
||||||
NET_OPTS+=",script=no,downscript=no"
|
NET_OPTS+=",script=no,downscript=no"
|
||||||
|
|
||||||
! configureDNS && return 1
|
configureDNS || return 1
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -376,7 +376,7 @@ if [[ "$DHCP" == [Yy1]* ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure for macvtap interface
|
# Configure for macvtap interface
|
||||||
! configureDHCP && exit 20
|
configureDHCP || exit 20
|
||||||
|
|
||||||
MSG="Booting DSM instance..."
|
MSG="Booting DSM instance..."
|
||||||
html "$MSG"
|
html "$MSG"
|
||||||
@ -412,7 +412,7 @@ else
|
|||||||
if [[ "${NETWORK,,}" == "user"* ]]; then
|
if [[ "${NETWORK,,}" == "user"* ]]; then
|
||||||
|
|
||||||
# Configure for usermode networking (slirp)
|
# Configure for usermode networking (slirp)
|
||||||
! configureUser && exit 24
|
configureUser || exit 24
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user