svn commit: r196552 - head/etc/rc.d
Xin LI
delphij at FreeBSD.org
Tue Aug 25 20:05:51 UTC 2009
Author: delphij
Date: Tue Aug 25 20:05:51 2009
New Revision: 196552
URL: http://svn.freebsd.org/changeset/base/196552
Log:
Localize 'e'.
Submitted by: dougb
Modified:
head/etc/rc.d/static_arp
Modified: head/etc/rc.d/static_arp
==============================================================================
--- head/etc/rc.d/static_arp Tue Aug 25 19:30:32 2009 (r196551)
+++ head/etc/rc.d/static_arp Tue Aug 25 20:05:51 2009 (r196552)
@@ -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
More information about the svn-src-all
mailing list