summaryrefslogtreecommitdiff
path: root/ec2-is-compat-env
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2009-12-16 21:17:31 -0500
committerScott Moser <smoser@ubuntu.com>2009-12-16 21:17:31 -0500
commit11cce768eb7e4f63ee8ea779d34d2b81b63257ad (patch)
tree06ae5d95f12fdfa60b6ef6e2d90ebf96273d23a7 /ec2-is-compat-env
parent256dc91794ad239c4d1554590cc4008b8daae47c (diff)
downloadvyos-cloud-init-11cce768eb7e4f63ee8ea779d34d2b81b63257ad.tar.gz
vyos-cloud-init-11cce768eb7e4f63ee8ea779d34d2b81b63257ad.zip
fix but that required 'ec2init=X' to be last thing on the cmdline
Diffstat (limited to 'ec2-is-compat-env')
-rw-r--r--ec2-is-compat-env4
1 files changed, 2 insertions, 2 deletions
diff --git a/ec2-is-compat-env b/ec2-is-compat-env
index 07034670..c987fe6f 100644
--- a/ec2-is-compat-env
+++ b/ec2-is-compat-env
@@ -59,8 +59,8 @@ fi
if [ -e /proc/cmdline ] && read cmdline < /proc/cmdline; then
# if cmdline has certain tokens in it, trust them
case " ${cmdline} " in
- *\ ${CMDLINE_EC2_COMPAT}=1\ ) xit 0;;
- *\ ${CMDLINE_EC2_COMPAT}=0\ ) xit 1;;
+ *\ ${CMDLINE_EC2_COMPAT}=1\ *) xit 0;;
+ *\ ${CMDLINE_EC2_COMPAT}=0\ *) xit 1;;
esac
fi