Skip to content

Commit

Permalink
Acceleration detection Network.
Browse files Browse the repository at this point in the history
Complete abandonment of instructions executed in bash for count
interfaces.
  • Loading branch information
eloaders committed Jul 22, 2014
1 parent 27fee05 commit 38e015d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions I-Nex/i-nex/.src/Network.module
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,11 @@ Public Sub inits()
Dim Max_Net As Integer
Dim cache As String
Logs("Add Network Devices to ComboBox", Logger.Info)
Shell "ls /sys/class/net/ | wc -l" Wait To cache
Max_Net = Replace(Replace(cache, " ", ""), "\n", "")
For Avail_Net = 1 To Max_Net
Shell "ls /sys/class/net/ | sed -n '" & Avail_Net & "p'" Wait To sdx
sdx = Replace(sdx, "\n", "")
Finfosys.ComboBox2.Add(sdx)
Finfosys.ComboBox2.Clear
For Avail_Net = 1 To Dir("/sys/class/net/").Count
Finfosys.ComboBox2.Add(Dir("/sys/class/net/")[Avail_Net - 1])
Next
Shell "ls /sys/class/net/ | sed -n '1p'" Wait To set_interface
set_interface = Replace(set_interface, "\n", "")
Finfosys.ComboBox2.Text = set_interface
Finfosys.ComboBox2.Index = 0
End

Public Sub get_informations_about_net_interface()
Expand Down

0 comments on commit 38e015d

Please sign in to comment.