I was hoping someone could give me some insight on how to add my own custom linux bash scripts to the PXE menu.

I have edited the pxemenu.txt file under /srv/tftp with:

option = execute ; "dd wipe drive" ; "ZERO drive/ISD with dd command" ;pxelinux.0 ; dd.cfg
I want to run this script automatically after picking the option in the menu

Here is my script file: dd.sh
dd if=/dev/zero of=/dev/sda bs=2048 seek=5 count=1
This I believe will clear the hdd including the ISD partition. I'm not too worried about writing with random vs. zeros.

What should I be adding to my .dd.cfg file to run this after our tech team chooses it.

Let's consider the dd.cfg file will be stored in /srv/tftp and the dd.sh file will be contained in /srv/tftp/dd

The dd.sh file has been chmod +x

Any help would be appreciated.

What is the best practice for this kind of situation?

I'd also like the option to boot a .ISO file like BART PE, I've done it on my FOG server at home, but it's been a while. Any help!

Thanks all