diff options
author | Tarik Gasmi | 2007-06-07 19:49:06 +0200 |
---|---|---|
committer | Tarik Gasmi | 2007-06-07 19:49:06 +0200 |
commit | b9d2bd338f68aace2eb9e999896a787014ac7e46 (patch) | |
tree | c17514d270e5e01c22f1ffdb54bed6789efaba4b /ldap-site-mngmt/webinterface/computers/pxe_copy.php | |
parent | * fixed incorrectly generated exportURI (still used the export-name instead (diff) | |
download | core-b9d2bd338f68aace2eb9e999896a787014ac7e46.tar.gz core-b9d2bd338f68aace2eb9e999896a787014ac7e46.tar.xz core-b9d2bd338f68aace2eb9e999896a787014ac7e46.zip |
Aktuelle Version LDAP-Site-Mngmt Webinterface
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1156 95ad53e4-c205-0410-b2fa-d234c58c8868
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"; } } |