diff options
-rwxr-xr-x | client/engine/Boot.lib | 18 | ||||
-rw-r--r-- | server/tftpboot/NetbootPXE.es.txt | 18 |
2 files changed, 32 insertions, 4 deletions
diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib index 646d6044..7da30075 100755 --- a/client/engine/Boot.lib +++ b/client/engine/Boot.lib @@ -68,9 +68,21 @@ case "$TYPE" in [ -z "$LOADER" ] && ogRaiseError $OG_ERR_NOTOS && return $? # Activar la partición y copiar Grub4DOS. ogSetPartitionActive $1 $2 - cp $OGLIB/grub4dos/* $MNTDIR # */ (Comentario Doxygen) - #kexec -l $MNTDIR/grub.exe --append=--config-file="find --set-root /$LOADER; chainloader /$LOADER; tpm --init" - kexec -l $MNTDIR/grub.exe --append=--config-file="root (hd$[$1-1],$[$2-1]); chainloader (hd$[$1-1],$[$2-1])/$LOADER; tpm --init" + #FIXME: activar seguimiento inicio sesion XP con grub4dos + #if `ogGetOsVersion 1 1 | grep "XP" > /dev/null` + #then + # dd if=/dev/zero of=${MNTDIR}/ogboot.me bs=1024 count=3 + # dd if=/dev/zero of=${MNTDIR}/ogboot.firstboot bs=1024 count=3 + # dd if=/dev/zero of=${MNTDIR}/ogboot.secondboot bs=1024 count=3 + # ogLoadHiveWindows $1 $2 + # ogHiveNTRunMachine "cmd /c del c:\ogboot.* " ogcleanboot + # ogUpdateHiveWindows + # reboot + #else + cp $OGLIB/grub4dos/* $MNTDIR # */ (Comentario Doxygen) + ##kexec -l $MNTDIR/grub.exe --append=--config-file="find --set-root /$LOADER; chainloader /$LOADER; tpm --init" + kexec -l $MNTDIR/grub.exe --append=--config-file="root (hd$[$1-1],$[$2-1]); chainloader (hd$[$1-1],$[$2-1])/$LOADER; tpm --init" + #fi ;; *) ogRaiseError $OG_ERR_PARTITION "$1, $2" return $? diff --git a/server/tftpboot/NetbootPXE.es.txt b/server/tftpboot/NetbootPXE.es.txt index fa928fa3..0eaba0fc 100644 --- a/server/tftpboot/NetbootPXE.es.txt +++ b/server/tftpboot/NetbootPXE.es.txt @@ -16,7 +16,23 @@ Activar el grldr del grub4dos cp /opt/opengnsys/www/principal/boot.php /opt/opengnsys/www/principal/boot.pxelinux.php cp /opt/opengnsys/www/principal/boot.grub4dos.php /opt/opengnsys/www/principal/boot.php - +4) +En la funcion ogBoot, de la libreria Boot.lib descomentar los comentarios del if de las líneas 71 a 85, para que quede + #FIXME: activar seguimiento inicio sesion XP con grub4dos + if `ogGetOsVersion 1 1 | grep "XP" > /dev/null` + then + dd if=/dev/zero of=${MNTDIR}/ogboot.me bs=1024 count=3 + dd if=/dev/zero of=${MNTDIR}/ogboot.firstboot bs=1024 count=3 + dd if=/dev/zero of=${MNTDIR}/ogboot.secondboot bs=1024 count=3 + ogLoadHiveWindows $1 $2 + ogHiveNTRunMachine "cmd /c del c:\ogboot.* " ogcleanboot + ogUpdateHiveWindows + reboot + else + cp $OGLIB/grub4dos/* $MNTDIR # */ (Comentario Doxygen) + ##kexec -l $MNTDIR/grub.exe --append=--config-file="find --set-root /$LOADER; chainloader /$LOADER; tpm --init" + kexec -l $MNTDIR/grub.exe --append=--config-file="root (hd$[$1-1],$[$2-1]); chainloader (hd$[$1-1],$[$2-1])/$LOADER; tpm --init" + fi
\ No newline at end of file |