diff mbox

[OpenWrt-Devel] base-files: Prefer busybox arp over /proc/net/arp alias

Message ID 20161110145250.403-1-sven.eckelmann@open-mesh.com
State Changes Requested
Delegated to: John Crispin
Headers show

Commit Message

Sven Eckelmann Nov. 10, 2016, 2:52 p.m. UTC
From: Marek Lindner <marek.lindner@open-mesh.com>

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 <marek.lindner@open-mesh.com
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
---
 package/base-files/files/etc/profile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jo-Philipp Wich Nov. 10, 2016, 3:13 p.m. UTC | #1
Hi,

pushed with http://git.lede-project.org/9978a3e and added the missing
">" to the first S-o-b.

Thanks,
Jo
diff mbox

Patch

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" ] || {