From owner-svn-src-head@FreeBSD.ORG Tue Aug 25 20:05:51 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B70AE1065690; Tue, 25 Aug 2009 20:05:51 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A61678FC18; Tue, 25 Aug 2009 20:05:51 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n7PK5pYC038211; Tue, 25 Aug 2009 20:05:51 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n7PK5psT038209; Tue, 25 Aug 2009 20:05:51 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <200908252005.n7PK5psT038209@svn.freebsd.org> From: Xin LI Date: Tue, 25 Aug 2009 20:05:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r196552 - head/etc/rc.d X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 20:05:51 -0000 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