summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_import.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installer/opengnsys_import.sh')
-rwxr-xr-xinstaller/opengnsys_import.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/installer/opengnsys_import.sh b/installer/opengnsys_import.sh
index c3b343ee..1f5ce410 100755
--- a/installer/opengnsys_import.sh
+++ b/installer/opengnsys_import.sh
@@ -305,9 +305,11 @@ done
# TFTP
echo " * Guardamos los ficheros PXE de los clientes."
-mv $OPENGNSYS/tftpboot/menu.lst $OPENGNSYS/tftpboot/menu.lst-$DATE
-cp -r $TMPDIR/menu.lst $OPENGNSYS/tftpboot
-chown -R www-data:www-data $OPENGNSYS/tftpboot/menu.lst
+for BOOTLOADER in menu.lst grub; do
+ mv $OPENGNSYS/tftpboot/$BOOTLOADER $OPENGNSYS/tftpboot/$BOOTLOADER-$DATE
+ cp -r $TMPDIR/$BOOTLOADER $OPENGNSYS/tftpboot
+ chown -R www-data:www-data $OPENGNSYS/tftpboot/$BOOTLOADER
+done
# ConfiguraciĆ³n de los clientes
echo " * Guardamos la configuraciĆ³n de los clientes."