[arch-releng] [PATCH 2/2] [configs/releng] Introducing syslinux/ifpxelinux.lua

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Thu Dec 1 08:56:21 EST 2011


On 11/30/2011 08:54 PM, Gerardo Exequiel Pozzi wrote:
> ifpxelinux.lua is a trivial Lua script that I made to work like ifcpu64.c32.
> In that way we can have two differents syslinux menus depending if booting from
> PXE or from non-PXE.
>
> * By default NBD PXE option is selected for booting on timeout.
> * As server (NDB/NFS/HTTP/FTP) is used the same ip from pxeserver.
<snip>
> diff --git a/configs/releng/syslinux/ifpxelinux.lua b/configs/releng/syslinux/ifpxelinux.lua
> new file mode 100644
> index 0000000..21cafae
> --- /dev/null
> +++ b/configs/releng/syslinux/ifpxelinux.lua
> @@ -0,0 +1,5 @@
> +if syslinux.derivative() == "PXELINUX" then
> +	syslinux.run_command(arg[1])
> +else
> +	syslinux.run_command(arg[2])
> +end
wow looking at syslinux source, this is already done via whichsys.c32 
module! reworking....

Anyway Lua is great!

-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1



More information about the arch-releng mailing list