diff options
-rwxr-xr-x | client/engine/Boot.lib | 2 | ||||
-rwxr-xr-x | client/engine/Disk.lib | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib index 695feba7..f39180bc 100755 --- a/client/engine/Boot.lib +++ b/client/engine/Boot.lib @@ -139,7 +139,7 @@ esac function ogGetWindowsName () { # Variables locales. -local PART MNTDIR +local MNTDIR # Si se solicita, mostrar ayuda. if [ "$*" == "help" ]; then diff --git a/client/engine/Disk.lib b/client/engine/Disk.lib index 972da3da..c4d0d4d4 100755 --- a/client/engine/Disk.lib +++ b/client/engine/Disk.lib @@ -673,6 +673,23 @@ echo $TYPE #/** +# ogGetEsp +#@brief Devuelve números de disco y partición para la partición EFI (ESP). +#*/ ## +function ogGetEsp () +{ +loacl PART d +for d in $(blkid -t TYPE=vfat -o device); do + PART="$(ogDevToDisk $d)" + if [ "$(ogGetPartitionId $PART)" == "$(ogTypeToId EFI GPT)" ]; then + echo $PART + break + fi +done +} + + +#/** # ogGetLastSector int_ndisk [int_npart] #@brief Devuelve el último sector usable del disco o de una partición. #@param int_ndisk nº de orden del disco |