Code

Use single interface.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Jan 2008 10:32:08 +0000 (10:32 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Jan 2008 10:32:08 +0000 (10:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8309 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/ServerPackages.pm

index a6c2a0f80b72f3c1ade45151702b1bb3596b196c..3782ba740dbe3b27fcea724374870a73562526ef 100644 (file)
@@ -55,8 +55,8 @@ my %cfg_defaults =
 &read_configfile();
 
 # detect interfaces and mac address
-@network_interfaces= &get_interface_for_ip($server_ip);
-$server_mac_address= &get_mac($network_interfaces[0]); 
+$network_interface= &get_interface_for_ip($server_ip);
+$server_mac_address= &get_mac($network_interface); 
 
 &main::daemon_log("server ip address detected: $server_ip", 1);
 &main::daemon_log("server mac address detected: $server_mac_address", 1);