From: opensides Date: Fri, 4 Sep 2009 21:48:11 +0000 (+0000) Subject: - Added patch for linux vserver for gosa-si-client from bug report 673 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ebbcd7d5049f664ec576299f97fabcb5d9ab9c50;p=gosa.git - Added patch for linux vserver for gosa-si-client from bug report 673 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14215 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index 703acbfd2..9afa2cabb 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -377,6 +377,12 @@ sub generate_hw_digest { 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)); }