From 994a9a7d53fcbba2c3804633f80775970ece1a80 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 29 Jan 2010 13:19:09 -0500 Subject: remove ec2-is-compat-env and minor changes to setup.py --- ec2-is-compat-env | 78 ------------------------------------------------------- setup.py | 7 +++-- 2 files changed, 3 insertions(+), 82 deletions(-) delete mode 100644 ec2-is-compat-env diff --git a/ec2-is-compat-env b/ec2-is-compat-env deleted file mode 100644 index c987fe6f..00000000 --- a/ec2-is-compat-env +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh -# vi: ts=4 noexpandtab syntax=sh - -ETC_CONFIG=/etc/ec2-init/is-compat-env -CONFIG_ACTIVE_VAR="compat" -CMDLINE_EC2_COMPAT=ec2init -CR=" -" -VERBOSE=1 -META_DATA_URL=http://169.254.169.254/2009-04-04 -check_md=0 - -Usage() { - cat <&2; exit 2;; - esac - shift; -done - -if [ ${check_md} -ne 0 ]; then - # if we are to check for meta data service - # then check first that there was something there. - index=$(wget --connect-timeout=2 --tries 2 -O - -q "${META_DATA_URL}") || - xit 1 - - # exit true if content of url a line with 'meta-data' at start - [ "${index#*${CR}meta-data}" = "${index}" ] || xit 0 - xit 1 -fi - -# if /proc/cmdline exists and has certain tokens, trust them -# even before looking at config file -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;; - esac -fi - -# if the config file exists and has a non-empty value set for -# CONFIG_ACTIVE_VAR trust it as definitive source. If no value is set -# fall through -if [ -e "${ETC_CONFIG}" ] && - active=$(sh -c "unset ${CONFIG_ACTIVE_VAR}; - . '${ETC_CONFIG}'; echo \${${CONFIG_ACTIVE_VAR}}") && - [ -n "${active}" ]; then - [ "$active" = "1" ] && xit 0 - xit 1 -fi - -xit 1 diff --git a/setup.py b/setup.py index cc7a2381..92c2c79f 100755 --- a/setup.py +++ b/setup.py @@ -23,14 +23,13 @@ import os.path import subprocess setup(name='EC2-init', - version='0.5.0', + version='0.5.2', description='EC2 initialisation magic', - author='Soren Hansen', - author_email='soren@canonical.com', + author='Scott Moser', + author_email='scott.moser@canonical.com', url='http://launchpad.net/ec2-init/', packages=['ec2init'], scripts=['ec2-init.py', - 'ec2-is-compat-env', 'cloud-init-run-module.py', 'cloud-init-cfg.py' ], -- cgit v1.2.3