--- lib/PXElator/dhcpd.pm 2009/08/07 14:08:21 177 +++ lib/PXElator/dhcpd.pm 2009/08/10 17:30:01 194 @@ -44,14 +44,13 @@ my $ip; - if ( -e "$conf/mac/$mac" ) { - $ip = read_file "$conf/mac/$mac"; + if ( $ip = client::ip_from_mac( $mac ) ) { print "RENEW $mac $ip\n"; return $ip; } else { $ip = client::next_ip; print "NEW $mac $ip\n"; - write_file "$conf/mac/$mac", $ip; + symlink "$conf/ip/$ip", "$conf/mac/$mac"; } my $ip_path = "$conf/ip/$ip";