#!/bin/rc
# pxeof - print pxe file for system
rfork e
fn usage {
echo >[2=1] usage: pxeof system
exit usage
}
if(~ $#* 0)
usage
ether=`{ndb/query -m sys $1 ether}
if(~ $ether ''){
echo >[1=2] pxeof: unknown pxe file for $1
exit noether
}
echo /cfg/pxe/$ether
|