From: Stéphane Graber Date: Tue, 2 Apr 2024 21:59:17 +0000 (-0400) Subject: hooks: Add SPDX headers X-Git-Tag: v6.0.0~1^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=007642c891c8364d8fea4b3f1d63833cbf96d30d;p=thirdparty%2Flxc.git hooks: Add SPDX headers Signed-off-by: Stéphane Graber --- diff --git a/hooks/clonehostname b/hooks/clonehostname index 8eec7a665..a5837f800 100755 --- a/hooks/clonehostname +++ b/hooks/clonehostname @@ -1,21 +1,8 @@ #!/bin/sh # -# Update the hostname in the cloned container's scripts -# -# Copyright © 2013 Oracle. -# -# This library is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2, as -# published by the Free Software Foundation. +# SPDX-License-Identifier: GPL-2.0-only # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# Update the hostname in the cloned container's scripts # Note that /etc/hostname is updated by lxc itself for file in \ @@ -27,4 +14,5 @@ do sed -i "s|$LXC_SRC_NAME|$LXC_NAME|" $file fi done + exit 0 diff --git a/hooks/dhclient-script b/hooks/dhclient-script index 9b4c0f0ff..9c9b40e69 100755 --- a/hooks/dhclient-script +++ b/hooks/dhclient-script @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1+ +# # dhclient-script for Linux. Dan Halbert, March, 1997. # Updated for Linux 2.[12] by Brian J. Murrell, January 1999. # No guarantees about this. I'm a novice at the details of Linux diff --git a/hooks/dhclient.in b/hooks/dhclient.in index 7ba9b8703..4d196e7cd 100755 --- a/hooks/dhclient.in +++ b/hooks/dhclient.in @@ -1,4 +1,7 @@ -#! /bin/bash +#!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1+ +# set -eu diff --git a/hooks/mountecryptfsroot b/hooks/mountecryptfsroot index f1134a84e..0946fc218 100755 --- a/hooks/mountecryptfsroot +++ b/hooks/mountecryptfsroot @@ -1,21 +1,7 @@ #!/bin/sh - -# (C) Copyright Canonical 2011-2013 - -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. - -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. - -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - +# +# SPDX-License-Identifier: LGPL-2.1+ +# # This hook can be used to mount an ecryptfs filesystem as a container's # rootfs. # To use this hook, assuming your container is called q1, diff --git a/hooks/nvidia b/hooks/nvidia index 8247f1953..f579eea1d 100755 --- a/hooks/nvidia +++ b/hooks/nvidia @@ -1,20 +1,6 @@ -#! /bin/bash +#!/bin/bash # -# Copyright (c) 2017, 2018 NVIDIA CORPORATION. -# -# This library is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2.1 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# SPDX-License-Identifier: LGPL-2.1+ set -eu diff --git a/hooks/squid-deb-proxy-client b/hooks/squid-deb-proxy-client index 3faac04df..7540854a9 100755 --- a/hooks/squid-deb-proxy-client +++ b/hooks/squid-deb-proxy-client @@ -1,21 +1,8 @@ #!/bin/sh # -# Make the cloned container aware of squid-deb-proxy settings at start. -# -# Copyright © 2014 Christopher Glass. -# -# This library is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2, as -# published by the Free Software Foundation. +# SPDX-License-Identifier: GPL-2.0-only # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# Make the cloned container aware of squid-deb-proxy settings at start. # When starting a container, inject the squid-deb-proxy-client proxy # address in the container's apt configuration. diff --git a/hooks/ubuntu-cloud-prep b/hooks/ubuntu-cloud-prep index 285c8f788..1da93830c 100755 --- a/hooks/ubuntu-cloud-prep +++ b/hooks/ubuntu-cloud-prep @@ -1,4 +1,7 @@ #!/bin/bash +# +# SPDX-License-Identifier: LGPL-2.1+ +# ## If the container being cloned has one or more lxc.hook.clone ## specified, then the specified hooks will be called for the new ## container. The arguments passed to the clone hook are: diff --git a/hooks/unmount-namespace.c b/hooks/unmount-namespace.c index 8721b3536..a116bde8b 100644 --- a/hooks/unmount-namespace.c +++ b/hooks/unmount-namespace.c @@ -1,19 +1,5 @@ /* - * Copyright © 2015 Wolfgang Bumiller . - * Copyright © 2015 Proxmox Server Solutions GmbH - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: LGPL-2.1+ * * -- *