diff options
Diffstat (limited to 'ldap-site-mngmt/webinterface/computers/pxe_copy.php')
| -rw-r--r-- | ldap-site-mngmt/webinterface/computers/pxe_copy.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ldap-site-mngmt/webinterface/computers/pxe_copy.php b/ldap-site-mngmt/webinterface/computers/pxe_copy.php index eb75ea44..61760a8e 100644 --- a/ldap-site-mngmt/webinterface/computers/pxe_copy.php +++ b/ldap-site-mngmt/webinterface/computers/pxe_copy.php @@ -119,7 +119,8 @@ if ( $pxecn != ""){ # Filename anpassen if ($targettype == "computers"){ $macdata = get_node_data($targetDN, array("hwaddress")); - $entrymod ['filename'] = "01-".$macdata['hwaddress']; + $pxemac = str_replace (":","-",$macdata['hwaddress']); + $entrymod ['filename'] = "01-".$pxemac; #$entrymod ['fileuri'] = "01-".$macdata['hwaddress'].".tgz"; } if ($targettype == "groups"){ @@ -127,7 +128,8 @@ if ( $pxecn != ""){ if (count($members) != 0){ foreach ($members['member'] as $hostDN){ $macdata = get_node_data($hostDN, array("hwaddress")); - $entrymod ['filename'][] = "01-".$macdata['hwaddress']; + $pxemac = str_replace (":","-",$macdata['hwaddress']); + $entrymod ['filename'][] = "01-".$pxemac; #$entrymod ['fileuri'] = $target.".tgz"; } } |
