summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/profile
diff options
context:
space:
mode:
authorMarek Lindner <marek.lindner@open-mesh.com>2016-11-10 15:52:50 +0100
committerJo-Philipp Wich <jo@mein.io>2016-11-10 16:12:52 +0100
commit9978a3e2ca5f57a3eb53d3960b24afada03914b4 (patch)
tree7b32edeb0e11330fb3732f95fa2f701fd81a8e63 /package/base-files/files/etc/profile
parentcc5c8f681e05f18678c8b10b9f747689e875ceaf (diff)
downloadmtk-20170518-9978a3e2ca5f57a3eb53d3960b24afada03914b4.zip
mtk-20170518-9978a3e2ca5f57a3eb53d3960b24afada03914b4.tar.gz
mtk-20170518-9978a3e2ca5f57a3eb53d3960b24afada03914b4.tar.bz2
base-files: Prefer busybox arp over /proc/net/arp alias
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>
Diffstat (limited to 'package/base-files/files/etc/profile')
-rw-r--r--package/base-files/files/etc/profile2
1 files changed, 1 insertions, 1 deletions
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" ] || {