Skip to content

Commit

Permalink
Add report for /proc/modules, /proc/cmdline, /etc/default/grub
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Dec 5, 2013
1 parent 214cd8d commit 8522cdb
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 8 deletions.
12 changes: 12 additions & 0 deletions src/i-nex/.src/FReport_Gen.class
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ If CheckBox10.Value = True Then
Object.Call(MInclude, "_partitions")
Endif

If CheckBox19.Value = True Then
Object.Call(MInclude, "_modules")
Endif

If CheckBox20.Value = True Then
Object.Call(MInclude, "_cmdline")
Endif

If CheckBox21.Value = True Then
Object.Call(MInclude, "_grub")
Endif

If CheckBox9.Value = True Then
Object.Call(MInclude, "_dmesg")
Endif
Expand Down
15 changes: 15 additions & 0 deletions src/i-nex/.src/FReport_Gen.form
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,21 @@
Expand = True
Text = ("Include /proc/partitions")
}
{ CheckBox19 CheckBox
Move(0,238,168,28)
Expand = True
Text = ("Include /proc/modules")
}
{ CheckBox20 CheckBox
Move(0,266,168,28)
Expand = True
Text = ("Include /proc/cmdline")
}
{ CheckBox21 CheckBox
Move(0,294,168,28)
Expand = True
Text = ("Include /etc/default/grub")
}
}
{ Separator1 Separator
Move(231,0,14,329)
Expand Down
37 changes: 29 additions & 8 deletions src/i-nex/.src/Reports/MInclude.module
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,77 @@
Public Sub _lspci()
_ohce("LSPCI")
Shell "lspci >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 1 / 9
FReport_Gen.ProgressBar1.Value = 1 / 12
Wait 0.01
End

Public Sub _lsusb()
_ohce("LSUSB")
Shell "lsusb >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 2 / 9
FReport_Gen.ProgressBar1.Value = 2 / 12
Wait 0.01
End

Public Sub _scsi()
_ohce("SCSI")
Shell "cat /proc/scsi/scsi >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 3 / 9
FReport_Gen.ProgressBar1.Value = 3 / 12
Wait 0.01
End

Public Sub _mtrr()
_ohce("PROC MTRR")
Shell "cat /proc/mtrr >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 5 / 9
FReport_Gen.ProgressBar1.Value = 5 / 12
Wait 0.01
End

Public Sub _devices()
_ohce("PROC DEVICES")
Shell "cat /proc/devices >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 6 / 9
FReport_Gen.ProgressBar1.Value = 6 / 12
Wait 0.01
End

Public Sub _diskstats()
_ohce("PROC DISKSTATS")
Shell "cat /proc/diskstats >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 7 / 9
FReport_Gen.ProgressBar1.Value = 7 / 12
Wait 0.01
End

Public Sub _dma()
_ohce("PROC DMA")
Shell "cat /proc/dma >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 8 / 9
FReport_Gen.ProgressBar1.Value = 8 / 12
Wait 0.01
End

Public Sub _partitions()
_ohce("PROC PARTITIONS")
Shell "cat /proc/partitions >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 9 / 9
FReport_Gen.ProgressBar1.Value = 9 / 12
Wait 0.01
End

Public Sub _modules()
_ohce("PROC modules")
Shell "cat /proc/modules >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 10 / 12
Wait 0.01
End

Public Sub _cmdline()
_ohce("PROC cmdline")
Shell "cat /proc/cmdline >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 11 / 12
Wait 0.01
End

Public Sub _grub()
_ohce("PROC GRUB")
Shell "cat /etc/default/grub >>" & FReport_Gen.ButtonBox1.Text & "" Wait
FReport_Gen.ProgressBar1.Value = 12 / 12
Wait 0.01
End

Expand Down

0 comments on commit 8522cdb

Please sign in to comment.