summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31f0d23)
raw | patch | inline | side by side (parent: 31f0d23)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Sep 2009 21:48:11 +0000 (21:48 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 4 Sep 2009 21:48:11 +0000 (21:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14215 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-client | patch | blob | history |
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index 703acbfd2aa962e0f9c62c4209d095bdb9e1e066..9afa2cabba30b1b95a8dfe99188042ec70b00ac3 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
foreach my $line (split /\n/, `cat /proc/bus/pci/devices`) {
$hw_data.= sprintf "%s", $line =~ /[^\s]+\s([^\s]+)\s.*/;
}
+ # linux-vserver has no /proc/bus/pci/devices
+ if ( !$hw_data ) {
+ foreach my $line (split /\n/, `ifconfig | grep HWaddr`) {
+ $hw_data.= sprintf "%s", $line =~ /[^\s]+\s([^\s]+)\s.*/;
+ }
+ }
return(md5_base64($hw_data));
}