summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ec2-check.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/ec2-check.pl b/scripts/ec2-check.pl
index 03448ff5..09b923c4 100755
--- a/scripts/ec2-check.pl
+++ b/scripts/ec2-check.pl
@@ -25,11 +25,9 @@ use warnings;
my $DMIDECODE = "/usr/sbin/dmidecode";
-my $UUID = `$DMIDECODE -s system-uuid`;
my $SN = `$DMIDECODE -s system-serial-number`;
-if( ($UUID =~ /^ec2.*/i) &&
- ($SN =~ /^ec2.*/i) )
+if( $SN =~ /^ec2.*/i )
{
exit(0);
}