[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Support for setting ksdevice to the interface used for PXE



On Thu, 18 Aug 2005, John Summerfied wrote:

> btw I'm pretty sure I recently saw pxelinux typing to get a config whose 
> name was based on the MAC address. I could probably deal with entering a 
> few ln commands (I can swipe & pastr the names), but I still prefer less 
> typing.
> 

What you probably saw was the hex representation of the ip address...

This works nicely...

/usr/local/bin/mkpxelnk 
-----------
cd /data/tftp/pxelinux.cfg
ln -s $1 `gethostip -x $2`
------------

arguements are a pxelinux.cfg/<file> that is appropriate and an ip

------------------------------------------------------------------------
Jim Wildman, CISSP, RHCE       jim rossberry com http://www.rossberry.com
"Society in every state is a blessing, but Government, even in its best
state, is a necessary evil; in its worst state, an intolerable one."
Thomas Paine


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]