summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-08-25 20:05:51 +0000
committerdelphij <delphij@FreeBSD.org>2009-08-25 20:05:51 +0000
commit968343b40035a3f4983f273ce3ce2b2b7b4e37f1 (patch)
tree031bf89b8efe24eb404f1f1db2347ece1989f5ce /etc
parent11422085318b9fc044ba39ee2af6a6fc6d27f5b1 (diff)
downloadFreeBSD-src-968343b40035a3f4983f273ce3ce2b2b7b4e37f1.zip
FreeBSD-src-968343b40035a3f4983f273ce3ce2b2b7b4e37f1.tar.gz
Localize 'e'.
Submitted by: dougb
Diffstat (limited to 'etc')
-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 937d660..582518f 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
OpenPOWER on IntegriCloud