From d80bc38c2d1d462b09d3e2107b9b7da0fe0c8c1b Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 20 Apr 2023 05:21:36 +0200 Subject: [PATCH] Errors --- run/network.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run/network.sh b/run/network.sh index 0e8d587..d023008 100644 --- a/run/network.sh +++ b/run/network.sh @@ -48,16 +48,16 @@ configureDHCP() { [[ ! -e ${TAP_PATH} ]] && [[ -e /dev0/${TAP_PATH##*/} ]] && ln -s /dev0/${TAP_PATH##*/} ${TAP_PATH} if [[ ! -e ${TAP_PATH} ]]; then - if ! mknod ${TAP_PATH} c $MAJOR $MINOR >/dev/null 2>&1; then + if ! mknod ${TAP_PATH} c $MAJOR $MINOR ; then echo "ERROR: Cannot mknod: ${TAP_PATH}" && exit 20 fi fi - if ! exec 30>>$TAP_PATH >/dev/null 2>&1; then + if ! exec 30>>$TAP_PATH; then echo "ERROR: Please add the following docker variable to your container: --device-cgroup-rule='c ${MAJOR}:* rwm'" && exit 21 fi - if ! exec 40>>/dev/vhost-net >/dev/null 2>&1; then + if ! exec 40>>/dev/vhost-net; then echo "ERROR: Cannot find vhost!" && exit 22 fi