Code

- Added patch for linux vserver for gosa-si-client from bug report 673
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Sep 2009 21:48:11 +0000 (21:48 +0000)
committeropensides <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

index 703acbfd2aa962e0f9c62c4209d095bdb9e1e066..9afa2cabba30b1b95a8dfe99188042ec70b00ac3 100755 (executable)
@@ -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));
 }