From ebbcd7d5049f664ec576299f97fabcb5d9ab9c50 Mon Sep 17 00:00:00 2001 From: opensides Date: Fri, 4 Sep 2009 21:48:11 +0000 Subject: [PATCH] - 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 --- gosa-si/gosa-si-client | 6 ++++++ 1 file changed, 6 insertions(+) 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)); } -- 2.30.2