_lnpxe()
{
HOSTFILE=/etc/hosts
local word
COMPREPLY=()
if [ 1 -eq "$COMP_CWORD" ]; then
pushd /home/tftp/config &>/dev/null || return 1
word="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=($(compgen -f "$word"))
popd &>/dev/null
fi
if [ 2 -eq "$COMP_CWORD" ]; then
word="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=($(compgen -A hostname "$word"))
fi
}
complete -F _lnpxe lnpxe