filesystem: added support for configuring static ARP tables.

This commit is contained in:
Ricardo Martins 2013-07-15 17:24:21 +01:00
parent 8a994f9bb1
commit 57fbc47850

View File

@ -44,6 +44,15 @@ start()
if [ -n "$cfg_eth_prv_ip" ]; then
ifconfig eth0:prv "$cfg_eth_prv_ip" up
fi
# Static ARP table.
if [ -n "$cfg_arp_table" ]; then
for e in $cfg_arp_table; do
ip="$(echo $e | cut -f1 -d'|')"
mac="$(echo $e | cut -f2 -d'|')"
arp -s "$ip" "$mac"
done
fi
}
stop()