mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-08 01:18:32 +08:00
fix: Error codes
This commit is contained in:
parent
95991d8f5d
commit
469ee67942
@ -187,7 +187,7 @@ if [ ! -c /dev/net/tun ]; then
|
|||||||
chmod 666 /dev/net/tun
|
chmod 666 /dev/net/tun
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -c /dev/net/tun ] && error "TUN network interface not available..." && exit 85
|
[ ! -c /dev/net/tun ] && error "TUN network interface not available..." && exit 25
|
||||||
|
|
||||||
# Create the necessary file structure for /dev/vhost-net
|
# Create the necessary file structure for /dev/vhost-net
|
||||||
if [ ! -c /dev/vhost-net ]; then
|
if [ ! -c /dev/vhost-net ]; then
|
||||||
@ -212,7 +212,7 @@ if [[ "$DHCP" == [Yy1]* ]]; then
|
|||||||
if [[ "$DEBUG" == [Yy1]* ]]; then
|
if [[ "$DEBUG" == [Yy1]* ]]; then
|
||||||
info "Warning: Are you sure the container is on a macvlan network?"
|
info "Warning: Are you sure the container is on a macvlan network?"
|
||||||
else
|
else
|
||||||
error "You can only enable DHCP while the container is on a macvlan network!" && exit 86
|
error "You can only enable DHCP while the container is on a macvlan network!" && exit 26
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user