From patchwork Thu Nov 10 14:52:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 693240 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tF5dj3Pcxz9vDt for ; Fri, 11 Nov 2016 01:53:28 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=open-mesh-com.20150623.gappssmtp.com header.i=@open-mesh-com.20150623.gappssmtp.com header.b="XY3/cdAi"; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 0A434B805E7; Thu, 10 Nov 2016 15:53:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Thu, 10 Nov 2016 15:53:23 +0100 (CET) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 0E5F4B80141 for ; Thu, 10 Nov 2016 15:53:22 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .open-mesh. - helo: .mail-wm0-f41.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 10 Nov 2016 15:53:19 +0100 (CET) Received: by mail-wm0-f41.google.com with SMTP id g23so45730426wme.1 for ; Thu, 10 Nov 2016 06:53:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=fY8t8yT8Gzg1niyjHk1Tk/FhUIa1vkWpgPn0Y+zuFug=; b=XY3/cdAiAEJ1AaG+u83H3tapi68OOA02j9MOqz31GwtRDTcEbIG8ufWrWghXnYsNWG jkjzR4xRcYYGkL9wJWvyAaNg6Veks6RzO5tZW49r0JEVRDZtduWCRMGUUkEqtQzPHG9d QhTDUrEFwfvCos3RAOsXc7rxuHT1EL9UHcFGZj/qrwnkdasbrEQHrkqEckSEfm9pzQDR UzTKGIiIbspmwHs43h2pu2fviG3/WXpJMnHmQPflUcuOAsbWDlcjiYIPfpCDjgkPMv11 8EERqCxo8h1dQfCyw/va82YROTjp9zPrNf8EF45H+O5TPn3Ev/C/XDDSPseUVYbr7/Rm 6xHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=fY8t8yT8Gzg1niyjHk1Tk/FhUIa1vkWpgPn0Y+zuFug=; b=av6GZQQH0EwcB7RbhvJe66AtdRk7Ycqz8aFMqAdTcSBKWlyqQ6CDExrJf+GmYlIwag 7JQC/KEP75eUzK9Ra5FvKpooDQuJ6SMYdLRvIp456mSbnC82n5XPDIKf2KPZX+0oElTU QZHiYorsfZJQqvS1ClI0QIZ6NQGLokybA8RYPzpEZDUeqQQa7kbUbKVpH5Sf9TpF307l 2iJ2aWWU+DUDrJwdVDXQc5U018JKXx5L0hv6LqYk9N8FPoZ3hI0eJemDK3yQSlYpYwJe 7ZcmdcSMAF2qEqfnPe3ZlaqRCk45LxvkVMXl2WuKv6yn7KwCEz/6v2Tps2Ry7ljO/Fva yrhA== X-Gm-Message-State: ABUngve8W3vJGyk7qYjzfuz48FszxterI6vx5+kdG0Sm5vbrgYgKO2uZ4cS6Rp4pf2RnGBVe X-Received: by 10.28.92.1 with SMTP id q1mr27925415wmb.62.1478789599345; Thu, 10 Nov 2016 06:53:19 -0800 (PST) Received: from sven-desktop.home.narfation.org (p2003007C6F6AC5FE876A858390D086EB.dip0.t-ipconnect.de. [2003:7c:6f6a:c5fe:876a:8583:90d0:86eb]) by smtp.gmail.com with ESMTPSA id js10sm5889413wjb.19.2016.11.10.06.53.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Nov 2016 06:53:18 -0800 (PST) From: Sven Eckelmann To: lede-dev@lists.infradead.org, openwrt-devel@lists.openwrt.org Date: Thu, 10 Nov 2016 15:52:50 +0100 Message-Id: <20161110145250.403-1-sven.eckelmann@open-mesh.com> X-Mailer: git-send-email 2.10.2 Subject: [OpenWrt-Devel] [PATCH] base-files: Prefer busybox arp over /proc/net/arp alias X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Lindner MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" From: Marek Lindner A firmware compiled with BUSYBOX_CONFIG_ARP should also use by default the arp binary from busybox. Otherwise the extra functionality the user requested can only be used when running arp with the path to the binary. Signed-off-by: Marek Lindner --- package/base-files/files/etc/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile index f241ab2..0118e25 100644 --- a/package/base-files/files/etc/profile +++ b/package/base-files/files/etc/profile @@ -20,7 +20,7 @@ alias ll='ls -alF --color=auto' [ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc -[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; } +[ -x /usr/bin/arp -o -x /sbin/arp ] || arp() { cat /proc/net/arp; } [ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; } [ -n "$FAILSAFE" ] || {