From f1b1fd7713e6b33f38b8b5ddb04f6c6f30c873dd Mon Sep 17 00:00:00 2001 From: lgromero Date: Tue, 30 Apr 2024 12:20:01 +0200 Subject: [PATCH] refs #273 converts lowecase MAC filename --- installer/ogboot_installer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/ogboot_installer.sh b/installer/ogboot_installer.sh index 2c52ce7..85ede7f 100644 --- a/installer/ogboot_installer.sh +++ b/installer/ogboot_installer.sh @@ -76,7 +76,8 @@ generate_ipxe_script() { hostname="${CLIENT[hostname]}" mac_address="${CLIENT[mac_address]}" ip_address="${CLIENT[ip_address]}" - filename="01-${mac_address//:/-}" + mac_address_lower=$(echo "$mac_address" | tr '[:upper:]' '[:lower:]') + filename="01-${mac_address_lower}" sed "s/IP_ADDRESS/$ip_address/g; s/HOSTNAME/$hostname/g; s/MAC_ADDRESS/$mac_address/g" /opt/opengnsys/tftpboot/ipxe_scripts/default.ipxe > "/opt/opengnsys/tftpboot/ipxe_scripts/$filename" echo "Archivo $filename creado con los parĂ¡metros modificados."