Hello, 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: ---8<--- #!ipxe ifopen 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 :loop chain --replace --autofree ${prefix}/${uppercase-ip} || chop uppercase-ip isset ${uppercase-ip} && goto loop || chain --replace --autofree ${prefix}/default || exit ---8<--- bye Chris --- Christian Jung Informatik/Systemtechnik 2 Telefon: +49 6898 10 4987 E-Mail: christian.j...@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
chop+upper.patch
Description: chop+upper.patch
_______________________________________________ ipxe-devel mailing list ipxe-devel@lists.ipxe.org https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel