Skip to content

Commit

Permalink
New pci, usb, pnp database. SIV http://rh-software.com/
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Sep 5, 2014
1 parent 6c6b321 commit 268fa67
Show file tree
Hide file tree
Showing 10 changed files with 138,358 additions and 7 deletions.
43 changes: 40 additions & 3 deletions I-Nex/i-nex/.src/Mdecode.module
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,45 @@
' You should have received a copy of the GNU General Public License
' along with this program. If not, see <http://www.gnu.org/licenses/>.

Public Sub _inits()


Public Sub _d(vendor As String, device As String) As String
Dim PCIDEVS As File
Dim PCI_STRING_vendor As String
Dim PCI_STRING_device As String
Dim sIcon As String
Dim sLine As String
Dim iPos As Integer
Dim Character As Integer
Dim sKey As String
Dim sVal As String

If vendor Begins "0x" Then
vendor = Replace(vendor, "0x", "")
Endif
If device Begins "0x" Then
device = Replace(device, "0x", "")
Endif
vendor = Upper(vendor)
device = Upper(device)

PCIDEVS = Open "/etc/i-nex/SIV/pcidevs.txt"
For Each sLine In PCIDEVS.Lines
sLine = Trim(sLine)
If Not sLine Then Continue

iPos = InStr(sLine, "=")
If iPos = 0 Then Continue

sKey = Trim(Left$(sLine, iPos - 1))
sVal = Trim(Mid$(sLine, iPos + 1))
Select Case sKey
Case vendor
Print sVal
PCI_STRING_vendor = sVal
Case vendor & ":" & device
PCI_STRING_device = sVal
End Select
Next
Close #PCIDEVS

Return PCI_STRING_vendor & " " & PCI_STRING_device
End
3 changes: 1 addition & 2 deletions I-Nex/i-nex/.src/Network.module
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ Public Sub get_informations_about_net_interface()
Try Finfosys.Label175.Text = "Type: " & Replace(File.Load("/sys/class/net/" & Finfosys.ComboBox2.Text & "/type"), "\n", "")

If subsystem_device Like "*0x*" Then
Shell "lspci -d " & subsystem_vendor & ":" & subsystem_device & " | cut -d ':' -f 3 | cut -d '(' -f 1" Wait To lspci
lspci = Replace(lspci, "\n", "")
lspci = Mdecode._d(subsystem_vendor, subsystem_device)
Else
lspci = Null
Endif
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ make: build-inex build-json build-pixmaps
install: install-pastebinit-and-other \
install-pixmaps install-changelogs install-manpages \
install-docs install-json install-inex install-scripts \
install-udev-rule link-inex install-database
install-udev-rule link-inex install-database install-siv

clean: clean-pixmaps clean-json clean-inex clean-all

Expand Down Expand Up @@ -80,6 +80,10 @@ install-scripts:
install-database:
@echo -e '\033[1;32mInstall database files...\033[0m'
$(MAKE) -C Database install

install-siv:
@echo -e '\033[1;32mInstall SIV files...\033[0m'
$(MAKE) -C SIV install

clean-pixmaps:

Expand Down
10 changes: 10 additions & 0 deletions SIV/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/make -f

include ../i-nex.mk

install: database-SIV

database-SIV:
mkdir -p $(DESTDIR)$(sysconfdir)/$(PN)
mkdir -p $(DESTDIR)$(sysconfdir)/$(PN)/SIV
$(INSTALL) 0755 $(DATABASE_SIV) $(DESTDIR)$(sysconfdir)/$(PN)/SIV/

0 comments on commit 268fa67

Please sign in to comment.