From ccff81ba5e6a3a823a83146464eedcdff65a6351 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 17 Feb 2013 19:41:14 -0500 Subject: [PATCH] linux script to report if this machine supports 64 bit computing (via long mode check on cpuinfo). --- scripts/system/check_64bit.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/system/check_64bit.sh diff --git a/scripts/system/check_64bit.sh b/scripts/system/check_64bit.sh new file mode 100644 index 00000000..0943b5fd --- /dev/null +++ b/scripts/system/check_64bit.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# just tests whether a linux box can handle 64-bit operating systems. + +longmode_check="$(grep " lm " /proc/cpuinfo |head -n 1)" + +if [ -z "$longmode_check" ]; then + echo "CPU does not seem to support 64 bit long mode." +else + echo "CPU can support 64 bit long mode." +fi + -- 2.34.1