diff options
Diffstat (limited to 'application/modules/ipxe')
| -rw-r--r-- | application/modules/ipxe/views/scripts/resource/getvesamenu.phtml | 59 |
1 files changed, 20 insertions, 39 deletions
diff --git a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml index 0a01512..f990f57 100644 --- a/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml +++ b/application/modules/ipxe/views/scripts/resource/getvesamenu.phtml @@ -102,11 +102,11 @@ menu color sel 7;37;40 #ff1c2a33 #667799bb all MENU MSGCOLOR #ff1c2a33 #00000000 none <? -// if(!isset($this->error)) -// title ( $this->title ); -// else -// title($this->error); -// + if(!isset($this->error)) + title ( $this->title ); + else + title($this->error); + // if ( ! authenticated() ) { // retry(); // } else { @@ -116,42 +116,23 @@ MENU MSGCOLOR #ff1c2a33 #00000000 none // localboot(); // } -//$bootosmapper = new Application_Model_BootOsMapper(); +$bootosmapper = new Application_Model_BootOsMapper(); -//if(isset($this->bmelist)){ -// foreach($this->bmelist as $bme){ -// -// $kcl = $bootosmapper->find($bme->getBootosID())->getDefaultkcl(); -// -// if($bme->getKcl() && $kcl != null){ -// uriboot ( $bme->getTitle(), -// "http://$this->host/ipxe/resource/start/alpha/$this->alphaID/bme/".$bme->getID(), "initrd=http://$this->host/resource/getinitramfs/alpha/$this->alphaID/file/initramfs $kcl alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend()); -// }else{ -// uriboot ( $bme->getTitle(), -// "http://$this->host/ipxe/resource/start/alpha/$this->alphaID/bme/".$bme->getID(), "initrd=http://$this->host/resource/getinitramfs/alpha/$this->alphaID/file/initramfs alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend()); -// } -// } -//} +if(isset($this->bmelist)){ + foreach($this->bmelist as $bme){ + + $kcl = $bootosmapper->find($bme->getBootosID())->getDefaultkcl(); + + if($bme->getKcl() && $kcl != null){ + uriboot ( $bme->getTitle(), + "http://$this->host/ipxe/resource/start/alpha/$this->alphaID/bme/".$bme->getID(), "initrd=http://$this->host/resource/getinitramfs/alpha/$this->alphaID/file/initramfs $kcl alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend()); + }else{ + uriboot ( $bme->getTitle(), + "http://$this->host/ipxe/resource/start/alpha/$this->alphaID/bme/".$bme->getID(), "initrd=http://$this->host/resource/getinitramfs/alpha/$this->alphaID/file/initramfs alpha=$this->alphaID file=http://$this->host/c/$this->alphaID/default.tgz ".$bme->getKclappend()); + } + } +} localboot(); -// } - -// LABEL SLXSTDBOOT -// MENU LABEL -// KERNEL kernel -// APPEND initrd=init vga=0x317 -// TEXT HELP -// Use this (default) entry if you have configured your client. -// You have chance to edit the kernel commandline by hitting the -// TAB key (e.g. for adding debug=3 to it for bug hunting) ... -// ENDTEXT -//LABEL DEBUGBOOT -// MENU LABEL OpenSLX PreBoot - Debug Mode -// KERNEL kernel -// APPEND initrd=init vga=0x317 debug=3 -// TEXT HELP -// Use this to start the preboot environment with debug shells. -// ENDTEXT - ?>
\ No newline at end of file |
