From 4f2f5df4798278c0ea18202b11854bc9c0559217 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 8 Oct 2014 12:06:04 +0200 Subject: If not running on AWS (system UUID and serial do not start with EC2), don't do AWS-specific things. --- etc/init.d/ec2-fetch-ssh-public-key | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc') diff --git a/etc/init.d/ec2-fetch-ssh-public-key b/etc/init.d/ec2-fetch-ssh-public-key index 05955f05..3d081d63 100644 --- a/etc/init.d/ec2-fetch-ssh-public-key +++ b/etc/init.d/ec2-fetch-ssh-public-key @@ -17,6 +17,12 @@ . /lib/lsb/init-functions +# Are we running on AWS? +/opt/vyatta/sbin/ec2-check.pl +if [ $? != 0 ]; then + exit 0 +fi + : ${vyatta_env:=/etc/default/vyatta} source $vyatta_env -- cgit v1.2.3