Skip to content

Commit

Permalink
Fix UUID detection
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jul 23, 2014
1 parent e5dc017 commit 64f3927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions I-Nex/i-nex/.src/Disk_Drives.module
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ Public Sub disks()
mount_point = Null
device_uuid = Null

If Finfosys.ComboBox3.Text Not Like "" Then
If IsNull(Finfosys.ComboBox3.Text) = False Then
Shell "grep -w \"" & Finfosys.ComboBox3.Text & "\" /proc/mounts | awk {'print $4'}" Wait To mount_widtch
Endif
Shell "LC_ALL=C df | grep -w \"" & Finfosys.ComboBox3.Text & "\" | awk {'print $6, $7'} | sed -n \"1p\"" Wait To mount_point
Shell "ls -l /dev/disk/by-uuid/ | grep -w \"" & Finfosys.ComboBox3.Text & "\" | awk {'print $9'}" Wait To device_uuid

Shell "ls -l /dev/disk/by-uuid/ | grep -w \"" & Replace(Finfosys.ComboBox3.Text, " ", "") & "\" | awk {'print $9'}" Wait To device_uuid
Print device_uuid
device_uuid = Replace(Replace(device_uuid, " ", ""), "\n", "")
Shell "grep -w \"" & Finfosys.ComboBox3.Text & "\" /proc/mounts | awk {'print $3'}" Wait To filesystem_type
filesystem_type = Replace(Replace(filesystem_type, " ", ""), "\n", "")
Expand Down

0 comments on commit 64f3927

Please sign in to comment.