From 2144f1d221bf96de3319ed5b95d763ba33b08c53 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 20 Apr 2023 05:11:59 +0200 Subject: [PATCH] Error messages --- run/network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/network.sh b/run/network.sh index 685f162..e5147d5 100644 --- a/run/network.sh +++ b/run/network.sh @@ -51,11 +51,11 @@ configureDHCP() { mknod ${TAP_PATH} c $MAJOR $MINOR && : || ("ERROR: Cannot mknod: ${TAP_PATH}" && exit 20) fi - if ! exec 30>>$TAP_PATH 2>/dev/null; then + if ! exec 30>>$TAP_PATH >/dev/null 2>&1; 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 2>/dev/null; then + if ! exec 40>>/dev/vhost-net >/dev/null 2>&1; then echo "ERROR: Cannot find vhost!" && exit 22 fi