Skip to content

Commit

Permalink
Fixed detec CD/DVD Devices
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Dec 13, 2012
1 parent 53eedbf commit fc0c5fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/i-nex/.settings
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ SearchComment=False
SearchString=True

[OpenFile]
Active=1
File[1]=".src/Finfosys.form"
File[2]=".src/Finfosys.class:518.3"
File[2]=".src/Finfosys.class:7.49"
File[3]=".src/Global.class:6.65"
File[4]=".src/About.form"
File[5]=".src/About.class:83.22"
File[6]=".src/distrodetect.class:18.8"
File[7]=".src/battery.module:70.77"
File[8]=".src/Disk_Drives.module:31.19"
Active=8
File[8]=".src/Disk_Drives.module:53.34"
File[9]=".src/ScreenShot.form"
File[10]=".src/ScreenShot.class:12.63"
File[11]=".src/ScreenShotM.module:7.0"
Expand Down
4 changes: 2 additions & 2 deletions src/i-nex/.src/Disk_Drives.module
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ Public Sub _inits()
Dim Max_HDD As Integer
Dim cache As String
Debug "Add Drives to ComboBox"
Shell "ls /sys/block/ | grep 'sd' | wc -l" Wait To cache
Shell "ls /sys/block/ | grep -e 'sd' -e 'sr' | tr ' ' '\n' | wc -l" Wait To cache
Max_HDD = Replace(Replace(cache, " ", ""), "\n", "")
For Avail_HDD = 1 To Max_HDD
Shell "ls /sys/block/ | grep 'sd' | sed -n '" & Avail_HDD & "p'" Wait To sdx
Shell "ls /sys/block/ | grep -e 'sd' -e 'sr' | tr ' ' '\n' | sed -n '" & Avail_HDD & "p'" Wait To sdx
sdx = Replace(sdx, "\n", "")
Finfosys.ComboBox4.Add(sdx)
Next
Expand Down

0 comments on commit fc0c5fc

Please sign in to comment.