From 644e5fdfa2f49b988a5150e2a4eefc12daecd845 Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 14 Oct 2017 19:42:41 +0200 Subject: Add license headers where missing While at it, compact 'set' into bash shebang where possible and add `make patches-copyright` target to simplify adding patch license headers. Change-Id: I0c841de72e5709e5eef915a52c5ec4a7fc0f7c37 Signed-off-by: Alexandru Avadanii --- mcp/scripts/create-config-drive.sh | 7 +++++++ mcp/scripts/lib.sh | 7 +++++++ mcp/scripts/net_internal.xml | 8 ++++++++ mcp/scripts/net_mcpcontrol.xml.template | 8 ++++++++ mcp/scripts/net_mgmt.xml | 8 ++++++++ mcp/scripts/net_public.xml | 8 ++++++++ mcp/scripts/user-data.template | 7 +++++++ 7 files changed, 53 insertions(+) (limited to 'mcp/scripts') diff --git a/mcp/scripts/create-config-drive.sh b/mcp/scripts/create-config-drive.sh index 0943914ab..51e38c60d 100755 --- a/mcp/scripts/create-config-drive.sh +++ b/mcp/scripts/create-config-drive.sh @@ -1,4 +1,11 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2017 Mirantis Inc. and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## # This will generate a openstack-style config drive image suitable for # use with cloud-init. You may optionally pass in an ssh public key diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh index 3a6deec21..7449a2172 100644 --- a/mcp/scripts/lib.sh +++ b/mcp/scripts/lib.sh @@ -1,4 +1,11 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## # # Library of shell functions # diff --git a/mcp/scripts/net_internal.xml b/mcp/scripts/net_internal.xml index a9abece70..8cf875e7c 100644 --- a/mcp/scripts/net_internal.xml +++ b/mcp/scripts/net_internal.xml @@ -1,3 +1,11 @@ + internal diff --git a/mcp/scripts/net_mcpcontrol.xml.template b/mcp/scripts/net_mcpcontrol.xml.template index ab58851e8..e0034fd16 100644 --- a/mcp/scripts/net_mcpcontrol.xml.template +++ b/mcp/scripts/net_mcpcontrol.xml.template @@ -1,3 +1,11 @@ + mcpcontrol diff --git a/mcp/scripts/net_mgmt.xml b/mcp/scripts/net_mgmt.xml index 0ba613152..4fbec712a 100644 --- a/mcp/scripts/net_mgmt.xml +++ b/mcp/scripts/net_mgmt.xml @@ -1,3 +1,11 @@ + mgmt diff --git a/mcp/scripts/net_public.xml b/mcp/scripts/net_public.xml index 61650d5a6..d6df4aa30 100644 --- a/mcp/scripts/net_public.xml +++ b/mcp/scripts/net_public.xml @@ -1,3 +1,11 @@ + public diff --git a/mcp/scripts/user-data.template b/mcp/scripts/user-data.template index 7dd718e63..6752039bf 100644 --- a/mcp/scripts/user-data.template +++ b/mcp/scripts/user-data.template @@ -1,4 +1,11 @@ #!/bin/bash +############################################################################## +# Copyright (c) 2017 Mirantis Inc., Enea AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## SALT_REPO=repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.11 if [ "$(uname -i)" = "aarch64" ]; then SALT_REPO=linux.enea.com/saltstack/apt/ubuntu/16.04/arm64/2016.11 -- cgit 1.2.3-korg