summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-10-08 12:06:04 +0200
committerDaniil Baturin <daniil@baturin.org>2014-10-08 12:06:04 +0200
commit4f2f5df4798278c0ea18202b11854bc9c0559217 (patch)
treed2b4bea9f4a19859c2d5aaf517bb2204566e6ff1 /etc
parente16b0e4fbfaff34691bdffc610ba9afa1f87957e (diff)
downloadvyatta-cfg-system-4f2f5df4798278c0ea18202b11854bc9c0559217.tar.gz
vyatta-cfg-system-4f2f5df4798278c0ea18202b11854bc9c0559217.zip
If not running on AWS (system UUID and serial do not start with EC2), don't do AWS-specific things.
Diffstat (limited to 'etc')
-rw-r--r--etc/init.d/ec2-fetch-ssh-public-key6
1 files changed, 6 insertions, 0 deletions
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