[Dnsmasq-discuss] how to set static arp entry according to dhcp request?

Ferenc Wagner wferi at niif.hu
Thu May 27 23:19:27 BST 2010


Darren Hoo <darren.hoo at gmail.com> writes:

> if [ ${1} = del ] ; then
>          ${ARP} -d $3
> fi
>
> if [ ${1} = old ] || [ ${1} = add ] ; then
>          ${ARP} -s $3 $2
> fi

Why not

case ${1} in
      del) ${ARP} -d $3;;
  old|add) ${ARP} -s $3 $2;;
esac

instead?
-- 
Cheers,
Feri.



More information about the Dnsmasq-discuss mailing list