Skip to content

Commit

Permalink
Add detect filesystem type ls -l /sys/fs/*/*
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jan 6, 2014
1 parent 08b2299 commit 1732f49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/i-nex/.src/Disk_Drives.module
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ Public Sub disks()
If IsNull(filesystem_type) Or IsBlank(filesystem_type) And Not IsNull(device_uuid) Then
Shell "grep -w '" & device_uuid & "' /proc/mounts | awk {'print $3'}" Wait To filesystem_type
Endif

If IsNull(filesystem_type) Or IsBlank(filesystem_type) Then
Shell "ls -l /sys/fs/*/* | grep -w " & Finfosys.ComboBox3.Text & " | cut -d '/' -f 4" Wait To filesystem_type
Endif
filesystem_type = Replace(Replace(filesystem_type, " ", ""), "\n", "")

If IsNull(device_uuid) Then
Expand Down

0 comments on commit 1732f49

Please sign in to comment.