summaryrefslogtreecommitdiffstats
path: root/application/modules/ipxe/controllers/AuthController.php
diff options
context:
space:
mode:
authormichael pereira2011-07-22 16:36:58 +0200
committermichael pereira2011-07-22 16:36:58 +0200
commit6119d81194d9c03ff7f677e6d7a5220afdeae9e2 (patch)
treeed2c6d35f95e0f00bb4fb8910f241855bf3a2ce4 /application/modules/ipxe/controllers/AuthController.php
parentneuer kernel (diff)
downloadpbs2-6119d81194d9c03ff7f677e6d7a5220afdeae9e2.tar.gz
pbs2-6119d81194d9c03ff7f677e6d7a5220afdeae9e2.tar.xz
pbs2-6119d81194d9c03ff7f677e6d7a5220afdeae9e2.zip
kernel statt chain zum laden des vesamenu im pxe script
Diffstat (limited to 'application/modules/ipxe/controllers/AuthController.php')
-rw-r--r--application/modules/ipxe/controllers/AuthController.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/application/modules/ipxe/controllers/AuthController.php b/application/modules/ipxe/controllers/AuthController.php
index b7e9a1f..75b25c2 100644
--- a/application/modules/ipxe/controllers/AuthController.php
+++ b/application/modules/ipxe/controllers/AuthController.php
@@ -34,7 +34,7 @@ class Ipxe_AuthController extends Zend_Controller_Action
{
$serialnumber = $this->_request->getParam('serialnumber');
$mac = $this->_request->getParam('mac');
- $login = $this->_request->getParam('login');
+ $login = $this->_request->getParam('login') == 'true';
if(isset($serialnumber)){
// Create a session
@@ -70,14 +70,15 @@ class Ipxe_AuthController extends Zend_Controller_Action
$result = "#!ipxe\n";
$result .= "imgfree\n";
- if($login == 'true'){
+ if($login){
$result .= "login\n";
- $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenu/alpha/".$session->getAlphasessionID()." http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$session->getAlphasessionID()."/login/true";
+ $result .= "kernel http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenu/alpha/".$session->getAlphasessionID()." http://\${username:uristring}:\${password:uristring}@".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$session->getAlphasessionID()."/login/true\n";
}else{
- $result .= "chain http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenu/alpha/".$session->getAlphasessionID()." http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$session->getAlphasessionID()."/login/false";
+ $result .= "kernel http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenu/alpha/".$session->getAlphasessionID()." http://".$_SERVER['HTTP_HOST']."/ipxe/resource/getvesamenuconfig/alpha/".$session->getAlphasessionID()."/login/false\n";
}
-
+ $result .= "module http://pbs2.mp.openslx.org/media/img/pbs2.png\n";
+ $result .= "boot";
header("Content-Length: ".(strlen($result)));