diff options
author | Hanoh Haim <hhaim@cisco.com> | 2015-10-12 16:49:58 +0300 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2015-10-12 16:49:58 +0300 |
commit | 279046aec7d7e72a0cb42250ed8b69f1d290df55 (patch) | |
tree | 225701870bc11e8b4905577cb469f51f236f3b9c /scripts/trex-cfg | |
parent | ddad1117a1bdc616eb1a5fc4e4e5ef2b8dcf6938 (diff) |
check for 64bit kernel
Diffstat (limited to 'scripts/trex-cfg')
-rwxr-xr-x | scripts/trex-cfg | 9 |
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 |