diff options
-rwxr-xr-x | server/bin/setclientmode | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bin/setclientmode b/server/bin/setclientmode index 02e5be59..64e8b98a 100755 --- a/server/bin/setclientmode +++ b/server/bin/setclientmode @@ -103,7 +103,7 @@ for MAC in $ETHERNET; do sed -e "s/vga=[0-9]*//g; s/INFOHOST/$DATOS/g" $TEMPLATE >$PXEFILE # Actualizar en la BD el modo de arranque asociada el cliente. mysql --defaults-extra-file=$MYCNF -D "$CATALOG" -e \ - "UPDATE ordenadores SET arranque='$BOOTMODE' WHERE mac='$MAC';" + "UPDATE ordenadores SET arranque='$(basename $TEMPLATE)' WHERE mac='$MAC';" fi let NPC=NPC+1 done |