summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/trex-cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/trex-cfg b/scripts/trex-cfg
index 2aebf026..ca442d15 100755
--- a/scripts/trex-cfg
+++ b/scripts/trex-cfg
@@ -30,6 +30,15 @@ for file in /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepag
fi
done
+MACHINE_TYPE=`uname -m`
+
+if [ ${MACHINE_TYPE} != 'x86_64' ]; then
+ echo "ERROR You have a 32bit Kernel try to install 64bit Kernel"
+ exit 1
+fi
+
+
+
if ! lsmod | grep -q igb_uio ; then
echo "Load the drivers for the first time "
modprobe uio