summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-06-10 08:24:02 +0000
committerJohn Crispin <john@openwrt.org>2013-06-10 08:24:02 +0000
commit9353e01af472f336e4753a6a4c0a3b0698108d48 (patch)
tree484d64afdcc4e597ef09bdfbe11e4600769440b6 /package/base-files
parentbc73ca56198ce61623db3061e00c1d246d1e20a5 (diff)
downloadmtk-20170518-9353e01af472f336e4753a6a4c0a3b0698108d48.zip
mtk-20170518-9353e01af472f336e4753a6a4c0a3b0698108d48.tar.gz
mtk-20170518-9353e01af472f336e4753a6a4c0a3b0698108d48.tar.bz2
base-files: change PATH order
This allows packages to override busybox applets by placing the new binaries in /usr/{sbin,bin} Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36890
Diffstat (limited to 'package/base-files')
-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 171adc1..e9a7119 100644
--- a/package/base-files/files/etc/profile
+++ b/package/base-files/files/etc/profile
@@ -1,7 +1,7 @@
#!/bin/sh
[ -f /etc/banner ] && cat /etc/banner
-export PATH=/bin:/sbin:/usr/bin:/usr/sbin
+export PATH=/usr/bin:/usr/sbin:/bin:/sbin
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}
export PS1='\u@\h:\w\$ '