From df64bf8feb686bffc6206a998bc8e1eba69c1989 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Tue, 7 May 2024 16:31:30 +0200 Subject: [PATCH] Add missing shebang lines --- build-utils/unsignedrpms.sh | 1 + .../share/xcat/kits/kit_template/scripts/sample/post.sh | 2 +- .../share/xcat/kits/kit_template/scripts/sample/postun.sh | 2 +- .../share/xcat/kits/kit_template/scripts/sample/postup.sh | 2 +- .../share/xcat/kits/kit_template/scripts/sample/pre.sh | 2 +- .../share/xcat/kits/kit_template/scripts/sample/preun.sh | 2 +- .../share/xcat/kits/kit_template/scripts/sample/preup.sh | 2 +- xCAT-genesis-builder/buildrpm | 1 + xCAT-genesis-scripts/usr/bin/doxcat | 1 + xCAT-genesis-scripts/usr/bin/ifup | 1 + xCAT-genesis-scripts/usr/bin/restart | 1 + xCAT-server/share/xcat/ib/netboot/sles/ib.postinstall | 1 + .../templates/environment/gitrepo/postinstall/test2.postinstall | 1 + 13 files changed, 13 insertions(+), 6 deletions(-) diff --git a/build-utils/unsignedrpms.sh b/build-utils/unsignedrpms.sh index 91d1f83c7..a4321bc85 100755 --- a/build-utils/unsignedrpms.sh +++ b/build-utils/unsignedrpms.sh @@ -1,3 +1,4 @@ +#!/bin/sh # Check if the given rpm is not signed, and display its file name if not signed. # This would normally be run from find, e.g.: find . -type f -name '*.rpm' -exec ~/unsignedrpms.sh {} \; diff --git a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/post.sh b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/post.sh index 2fa3d84e1..b71635020 100755 --- a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/post.sh +++ b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/post.sh @@ -1,3 +1,3 @@ - +#!/bin/sh echo "running sample-comp1 post script" diff --git a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/postun.sh b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/postun.sh index a5596e931..78a290b21 100755 --- a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/postun.sh +++ b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/postun.sh @@ -1,3 +1,3 @@ - +#!/bin/sh echo "running sample-comp1 postun script" diff --git a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/postup.sh b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/postup.sh index a4ad3c500..01fb7acf0 100755 --- a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/postup.sh +++ b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/postup.sh @@ -1,3 +1,3 @@ - +#!/bin/sh echo "running sample-comp1 postup script" diff --git a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/pre.sh b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/pre.sh index 36a88c970..132319630 100755 --- a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/pre.sh +++ b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/pre.sh @@ -1,3 +1,3 @@ - +#!/bin/sh echo "running sample-comp1 pre script" diff --git a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/preun.sh b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/preun.sh index e94c3aa8e..5f407810a 100755 --- a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/preun.sh +++ b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/preun.sh @@ -1,3 +1,3 @@ - +#!/bin/sh echo "running sample-comp1 preun script" diff --git a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/preup.sh b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/preup.sh index bf2248496..0aee81c29 100755 --- a/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/preup.sh +++ b/xCAT-buildkit/share/xcat/kits/kit_template/scripts/sample/preup.sh @@ -1,3 +1,3 @@ - +#!/bin/sh echo "running sample-comp1 preup script" diff --git a/xCAT-genesis-builder/buildrpm b/xCAT-genesis-builder/buildrpm index b0bc336b4..0c852ea9a 100755 --- a/xCAT-genesis-builder/buildrpm +++ b/xCAT-genesis-builder/buildrpm @@ -1,3 +1,4 @@ +#!/bin/bash # Build the xCAT-genesis-base rpm on a host system. # Option 1: install the xCAT-genesis-builder rpm (that includes this file) on a system installed with # the distro you want to use to build xCAT-genesis-base. diff --git a/xCAT-genesis-scripts/usr/bin/doxcat b/xCAT-genesis-scripts/usr/bin/doxcat index 0f2e76af9..9fe40ba50 100755 --- a/xCAT-genesis-scripts/usr/bin/doxcat +++ b/xCAT-genesis-scripts/usr/bin/doxcat @@ -1,3 +1,4 @@ +#!/bin/bash # # 2013.02.07 Brian Elliott Finley # - Added slash in front of "var" in the NICSTOBRINGUP dhclient section. diff --git a/xCAT-genesis-scripts/usr/bin/ifup b/xCAT-genesis-scripts/usr/bin/ifup index e5d7491e5..6a74b84db 100755 --- a/xCAT-genesis-scripts/usr/bin/ifup +++ b/xCAT-genesis-scripts/usr/bin/ifup @@ -1,3 +1,4 @@ +#!/bin/bash if [ "${1%?}" = "usb" ]; then /sbin/setupimmnic fi diff --git a/xCAT-genesis-scripts/usr/bin/restart b/xCAT-genesis-scripts/usr/bin/restart index d27c9f832..f5e79af3c 100755 --- a/xCAT-genesis-scripts/usr/bin/restart +++ b/xCAT-genesis-scripts/usr/bin/restart @@ -1,3 +1,4 @@ +#!/bin/bash # IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html #Redhcp, do the xcat part again FORCENICS=`cat /restart|awk '{print $2}'` diff --git a/xCAT-server/share/xcat/ib/netboot/sles/ib.postinstall b/xCAT-server/share/xcat/ib/netboot/sles/ib.postinstall index 28e25dcb5..46194675a 100755 --- a/xCAT-server/share/xcat/ib/netboot/sles/ib.postinstall +++ b/xCAT-server/share/xcat/ib/netboot/sles/ib.postinstall @@ -1,3 +1,4 @@ +#!/bin/sh # Sample script for diskless image changes for IB support # Invoke this script from your # /install/custom/netboot///.postinstall script as: diff --git a/xCAT-test/autotest/testcase/xcat_inventory/templates/environment/gitrepo/postinstall/test2.postinstall b/xCAT-test/autotest/testcase/xcat_inventory/templates/environment/gitrepo/postinstall/test2.postinstall index 45f8697f7..f950b6dc6 100755 --- a/xCAT-test/autotest/testcase/xcat_inventory/templates/environment/gitrepo/postinstall/test2.postinstall +++ b/xCAT-test/autotest/testcase/xcat_inventory/templates/environment/gitrepo/postinstall/test2.postinstall @@ -1,3 +1,4 @@ +#!/bin/sh #Test for postinstall script installroot=$1 echo "test postisntall" >> $installroot/tmp/test2.postinstall