From b219ed748bde477e1b6cf78a30a9229cc4d79e3b Mon Sep 17 00:00:00 2001 From: lgromero Date: Thu, 25 Apr 2024 09:44:33 +0200 Subject: [PATCH] Changes to lower mac adresss to the name script --- etc/dhcp_boot.ipxe.tmpl | 2 -- installer/ogboot_installer.sh | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/etc/dhcp_boot.ipxe.tmpl b/etc/dhcp_boot.ipxe.tmpl index fa8cd7c..4df2849 100644 --- a/etc/dhcp_boot.ipxe.tmpl +++ b/etc/dhcp_boot.ipxe.tmpl @@ -9,8 +9,6 @@ echo Config File: ${configfile} ifopen net0 route # Intentar cargar la configuración personalizada por MAC -sleep 5 chain ${configfile} || - # Si no se encuentra la configuración personalizada, cargar la configuración por defecto chain $prefix/default.ipxe diff --git a/installer/ogboot_installer.sh b/installer/ogboot_installer.sh index 1372301..eb09c30 100644 --- a/installer/ogboot_installer.sh +++ b/installer/ogboot_installer.sh @@ -77,7 +77,8 @@ generate_ipxe_script() { echo "Creando ficheros MAC script" ls -lh for mac_address in $MAC_ADDRESSES; do - filename="01-${mac_address//:/-}" + mac_address_lower=$(echo "$mac_address" | tr '[:upper:]' '[:lower:]') + filename="01-${mac_address_lower}" echo "Creando archivo $filename..." cp /opt/opengnsys/tftpboot/ipxe_scripts/default.ipxe /opt/opengnsys/tftpboot/ipxe_scripts/$filename done