backward compatibility

This commit is contained in:
Matthias Radestock committed 2014-10-24 15:36:54 +01:00
1 parent 9ec7422221
commit d3ba6746a5
1 file changed
+6
+6
View File
@@ -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.