summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2015-10-12 16:49:58 +0300
committerHanoh Haim <hhaim@cisco.com>2015-10-12 16:49:58 +0300
commit279046aec7d7e72a0cb42250ed8b69f1d290df55 (patch)
tree225701870bc11e8b4905577cb469f51f236f3b9c
parentddad1117a1bdc616eb1a5fc4e4e5ef2b8dcf6938 (diff)
check for 64bit kernel
-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