Skip to content

Commit

Permalink
Not use /proc/modules. Use /sys/module/
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jul 12, 2014
1 parent 8e5fab4 commit 6591b43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/i-nex/.src/FModules.class
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Public Actual_Module As String
Public Sub Form_Open()
Dim i As Integer
If ChkPrm.ChkExec("modinfo") = True Then
Shell "cat /proc/modules | awk {'print $1'} | wc -l" Wait To All_Found_Modules_String
Shell "ls /sys/module/ | sort | cut -d \"/\" -f 1 | wc -l" Wait To All_Found_Modules_String
All_Found_Modules = Replace(Replace(All_Found_Modules_String, " ", ""), "\n", "")
For i = 1 To All_Found_Modules
Shell "cat /proc/modules | awk {'print $1'} | sed -n '" & i & "p'" Wait To Actual_Module
Shell "ls /sys/module/ | sort | cut -d \"/\" -f 1 | sed -n '" & i & "p'" Wait To Actual_Module
Actual_Module = Replace(Replace(Actual_Module, " ", ""), "\n", "")
ComboBox1.Add(Actual_Module)
Next
Expand All @@ -42,8 +42,8 @@ Public Sub Form_Open()
End

Public Sub ComboBox1_Click()

Shell "modinfo " & ComboBox1.Text & "" Wait To TextArea1.Text
Exec ["modinfo", ComboBox1.text] Wait To TextArea1.Text

End

Expand Down

0 comments on commit 6591b43

Please sign in to comment.