aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/static_arp
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-08-25 20:05:51 +0000
committerXin LI <delphij@FreeBSD.org>2009-08-25 20:05:51 +0000
commit28ef31c725425d0dd2c9096c1c5c7df46de74dda (patch)
tree031bf89b8efe24eb404f1f1db2347ece1989f5ce /etc/rc.d/static_arp
parentc31650ade16a1f64307820485d56e1adedda3660 (diff)
downloadsrc-28ef31c725425d0dd2c9096c1c5c7df46de74dda.tar.gz
src-28ef31c725425d0dd2c9096c1c5c7df46de74dda.zip
Localize 'e'.
Submitted by: dougb
Notes
Notes: svn path=/head/; revision=196552
Diffstat (limited to 'etc/rc.d/static_arp')
-rw-r--r--etc/rc.d/static_arp6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.d/static_arp b/etc/rc.d/static_arp
index 937d66069d89..582518fe97ea 100644
--- a/etc/rc.d/static_arp
+++ b/etc/rc.d/static_arp
@@ -41,10 +41,11 @@ stop_cmd="static_arp_stop"
static_arp_start()
{
+ local e arp_args
+
if [ -n "${static_arp_pairs}" ]; then
echo -n 'Binding static ARP pair(s):'
for e in ${static_arp_pairs}; do
- local arp_args
echo -n " ${e}"
eval arp_args=\$static_arp_${e}
arp -S ${arp_args} >/dev/null 2>&1
@@ -55,10 +56,11 @@ static_arp_start()
static_arp_stop()
{
+ local e arp_args
+
if [ -n "${static_arp_pairs}" ]; then
echo -n 'Unbinding static ARP pair(s):'
for e in ${static_arp_pairs}; do
- local arp_args
echo -n " ${e}"
eval arp_args=\$static_arp_${e}
arp -d ${arp_args%%[ ]*} > /dev/null 2>&1