refs #310 test another mac argument
parent
b219ed748b
commit
03a9c7564a
|
@ -1,9 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Hello world"
|
||||
touch "Hello world"
|
||||
BRANCH=$1
|
||||
MAC_ADDRESSES=$2
|
||||
MAC_ADDRESSES=("${@:2}")
|
||||
if [[ -z $BRANCH ]]; then
|
||||
BRANCH="main"
|
||||
fi
|
||||
|
@ -76,6 +74,7 @@ generate_ipxe_script() {
|
|||
sed "s/SERVERIP/$ip_address/g" "$template_default" > "$default_output"
|
||||
echo "Creando ficheros MAC script"
|
||||
ls -lh
|
||||
echo $MAC_ADDRESSES
|
||||
for mac_address in $MAC_ADDRESSES; do
|
||||
mac_address_lower=$(echo "$mac_address" | tr '[:upper:]' '[:lower:]')
|
||||
filename="01-${mac_address_lower}"
|
||||
|
|
Loading…
Reference in New Issue