From: Chris Koeritz Date: Mon, 18 Feb 2013 00:41:14 +0000 (-0500) Subject: linux script to report if this machine supports 64 bit computing (via long mode X-Git-Tag: 2.140.90~1102 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=ccff81ba5e6a3a823a83146464eedcdff65a6351;p=feisty_meow.git linux script to report if this machine supports 64 bit computing (via long mode check on cpuinfo). --- 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 +