I have this kickstart file from

https://wiki.rit.edu/display/KGCOELTSP/Example+Kickstart+File

there the network configuration is mentioned as:

network --bootproto=dhcp --device=eth0

But I want the kickstart to automatically choose the connected interface (ie figure out the device that is connected and selecting that device) so that the PXE installation can continue. How can I change the kickstart to avoid being hardcoded to eth0?

Thanks.