[ipxe-devel] new functions "chop" and "upper"

JUNG, Christian christian.jung at shsservices.org
Fri Feb 19 14:11:52 UTC 2016


I've added two new functions ("chop" and "upper") to the iPXE shell and attached the patch to this mail. These help me to resemble the pxelinux.0 behaviour.

"chop" cuts off the last character of a given setting and "upper" changes a setting to upper case.

I'm not sure whether the implementation of the two functions is really the best one. Any thoughts about it?

The embedded script in the undionly.kpxe could be:



set prefix tftp://${next-server}/tftpboot/pxelinux.cfg

isset ${uuid} && chain --replace --autofree ${prefix}/${uuid} ||
chain --replace --autofree ${prefix}/01-${mac:hexhyp} ||

set uppercase-ip ${ip:hexraw}
upper uppercase-ip

chain --replace --autofree ${prefix}/${uppercase-ip} ||
chop uppercase-ip
isset ${uppercase-ip} && goto loop ||

chain --replace --autofree ${prefix}/default ||



Christian Jung
Informatik/Systemtechnik 2
Telefon: +49 6898 10 4987
E-Mail: christian.jung at shsservices.org

SHS SERVICES GmbH, Bismarckstraße 145, 66333 Völklingen
Sitz: Völklingen
Registergericht: Amtsgericht Saarbrücken HRB 14092
Geschäftsführer: Martin Baues, Dr. Bernd Luxenburger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20160219/57cac6fc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chop+upper.patch
Type: application/octet-stream
Size: 3444 bytes
Desc: chop+upper.patch
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20160219/57cac6fc/attachment.obj>

More information about the ipxe-devel mailing list