contact: "dgl@dgl.cx"
description: "Adds a /sysinfo command which prints system information (linux only)."
filename: "sysinfo_dg.pl"
- modified: "2008-05-17 17:39:11"
+ modified: "2014-01-1 18:01:22"
license: "GNU GPLv2 or later"
name: "sysinfo-dg"
url: "http://irssi.dgl.cx/"
- version: "1.2"
+ version: "1.3"
- authors: "Juerd, Tronic"
contact: "trn@iki.fi"
use strict;
use Irssi 20011210.0250 ();
use vars qw($VERSION %IRSSI);
-$VERSION = "1.2";
+$VERSION = "1.3";
%IRSSI = (
authors => 'David Leadbeater',
contact => 'dgl@dgl.cx',
sub pciinfo{
my($videocard,$ethernet);
- open(PCI, "<", "/proc/pci") or return undef;
+ open(PCI, "-|", "/sbin/lspci") or return undef;
while(<PCI>){
chomp;
if(/VGA compatible controller: (.*?)$/){
$videocard .= "${1}+ ";
- }elsif(/Ethernet controller: (.*?)$/){
+ }elsif(/(Ethernet|Network) controller: (.*?)$/){
$ethernet = $1;
}
}