refs #310 fix mac for array declaration
parent
03a9c7564a
commit
64ff35368a
|
@ -74,8 +74,8 @@ generate_ipxe_script() {
|
||||||
sed "s/SERVERIP/$ip_address/g" "$template_default" > "$default_output"
|
sed "s/SERVERIP/$ip_address/g" "$template_default" > "$default_output"
|
||||||
echo "Creando ficheros MAC script"
|
echo "Creando ficheros MAC script"
|
||||||
ls -lh
|
ls -lh
|
||||||
echo $MAC_ADDRESSES
|
echo ${MAC_ADDRESSES[@]}
|
||||||
for mac_address in $MAC_ADDRESSES; do
|
for mac_address in "${MAC_ADDRESSES[@]}"; do
|
||||||
mac_address_lower=$(echo "$mac_address" | tr '[:upper:]' '[:lower:]')
|
mac_address_lower=$(echo "$mac_address" | tr '[:upper:]' '[:lower:]')
|
||||||
filename="01-${mac_address_lower}"
|
filename="01-${mac_address_lower}"
|
||||||
echo "Creando archivo $filename..."
|
echo "Creando archivo $filename..."
|
||||||
|
|
Loading…
Reference in New Issue