Skip to content

Commit

Permalink
Move Finfosys.kernel to MKernel
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Oct 22, 2016
1 parent 1881c95 commit 1148379
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
13 changes: 13 additions & 0 deletions I-Nex/i-nex/.src/Kernel/MKernel.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
' Gambas module file


Public Sub kernel()
Dim Machine As String
Try Finfosys.TextLabel18.Text = "Build Date: " & CString(File.Load("/proc/sys/kernel/version"))
Try Finfosys.TextLabel17.Text = "OS Release: " & CString(File.Load("/proc/sys/kernel/osrelease"))
Try Finfosys.TextLabel7.Text = "OS Type: " & CString(File.Load("/proc/sys/kernel/ostype"))
Try Finfosys.TextLabel16.Text = "Hostname: " & CString(File.Load("/proc/sys/kernel/hostname"))
Try Exec ["arch"] Wait To Machine
Finfosys.TextLabel26.Text = "Machine: " & CString(Machine)
Try Finfosys.TextArea3.Text = File.Load("/proc/cmdline")
End
15 changes: 1 addition & 14 deletions I-Nex/i-nex/.src/MAIN/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
' 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 INEXGLINFO As Process


Public AllowLog As Boolean
Public cpu As String
Public CPU_FLAGS As New String[]
Expand Down Expand Up @@ -170,7 +168,7 @@ Public Sub Form_Open()
Logs("Check Bios", Logger.Info)
bios()
Logs("Check Kernels", Logger.Info)
kernel()
Object.Call(MKernel, "kernel")
Logs("Check graphic card", Logger.Info)
grafika()
''END Uruchomienie instrukcji dla poszczególnych zakładek w celu wydobycia informacji z systemu
Expand All @@ -185,17 +183,6 @@ Public Sub ComboBox1_Click()

End

Public Sub kernel()
Dim Machine As String
Try TextLabel18.Text = "Build Date: " & CString(File.Load("/proc/sys/kernel/version"))
Try TextLabel17.Text = "OS Release: " & CString(File.Load("/proc/sys/kernel/osrelease"))
Try TextLabel7.Text = "OS Type: " & CString(File.Load("/proc/sys/kernel/ostype"))
Try TextLabel16.Text = "Hostname: " & CString(File.Load("/proc/sys/kernel/hostname"))
Try Exec ["arch"] Wait To Machine
TextLabel26.Text = "Machine: " & CString(Machine)
Try TextArea3.Text = File.Load("/proc/cmdline")
End

Public Sub bios()
Try TextBox2.Text = "Board Vendor: " & Replace(File.Load("/sys/devices/virtual/dmi/id/board_vendor"), "\n", "")
Try TextBox3.Text = "Board Version: " & Replace(File.Load("/sys/devices/virtual/dmi/id/board_version"), "\n", "")
Expand Down

0 comments on commit 1148379

Please sign in to comment.