Minor refactor of wwinit and build-ipxe scripts

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-10-31 09:49:55 -06:00
parent f3a1b43360
commit 36d8984d96
2 changed files with 7 additions and 23 deletions

View File

@@ -5,21 +5,13 @@ echo "Hello from WWINIT"
. /warewulf/config
myPATH=/warewulf/init.d
while read -r NAME; do
# if [ -x $myPATH/$NAME ]
# then
echo "Launching: $NAME"
sh "$myPATH/$NAME"
# fi
done <<EOF
# `ls $myPATH/*.sh`
`ls $myPATH/`
EOF
ls -1 $myPATH/ | while read -r NAME; do
echo "Launching: $NAME"
sh "$myPATH/$NAME"
done
echo "Calling $WWINIT..."
echo
sleep 2
exec $WWINIT