[Dnsmasq-discuss] how to set static arp entry according to dhcp?request?
clemens fischer
ino-news at spotteswoode.dnsalias.org
Fri May 28 00:26:41 BST 2010
Ferenc Wagner wrote:
> Why not
>
> case ${1} in
> del) ${ARP} -d $3;;
> old|add) ${ARP} -s $3 $2;;
> esac
I'd even cater for proper quoting in the face of unreliable input:
case "-${1}" in
-del) ${ARP} -d "$3";;
-old|-add) ${ARP} -s "$3" "$2";;
esac
That way an argument can never expand to several arguments, and the
useless "-" will never let "case" work on an empty string.
clemens
More information about the Dnsmasq-discuss
mailing list