From d3ba6746a56c236a585caab110925ef6a39d69ea Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Fri, 24 Oct 2014 15:36:54 +0100 Subject: [PATCH] backward compatibility --- weave | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weave b/weave index 796effef..cc8f9986 100755 --- a/weave +++ b/weave @@ -264,6 +264,12 @@ case "$COMMAND" in # (eth0, wlan0, etc) so the name becomes stable across host # restarts. MACADDR=`cat /sys/class/net/$BRIDGE/address` + # Backward compatibility... Note that the regexp here is far + # from precise, but good enough. + if echo "$1" | grep -E '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/[0-9]{1,2}$' >/dev/null ; then + echo "WARNING: $1 parameter swallowed; 'weave launch' no longer takes a CIDR as the first parameter" >&2 + shift 1 + fi # Set WEAVE_DOCKER_ARGS in the environment in order to supply # additional parameters, such as resource limits, to docker # when launching the weave container.