aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-03-24 21:51:44 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-03-24 21:51:44 +0000
commitcf0894f2678faff8572601785ae555829585ad86 (patch)
treea6ffdb8efcab8bd349af81a252401340399ed9b7
parentb69911af308d7139e64ef6f72fb1562798f532ee (diff)
downloadupstream-cf0894f2678faff8572601785ae555829585ad86.tar.gz
upstream-cf0894f2678faff8572601785ae555829585ad86.tar.bz2
upstream-cf0894f2678faff8572601785ae555829585ad86.zip
Use MiBSD ksh if installed (#1470)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6687 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/base-files/files/etc/profile2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile
index ae514b0924..aee0de2b84 100644
--- a/package/base-files/files/etc/profile
+++ b/package/base-files/files/etc/profile
@@ -7,6 +7,8 @@ export PS1='\u@\h:\w\$ '
alias more=less
[ -x /usr/bin/vim ] || alias vim=vi
+[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
+
arp() { cat /proc/net/arp; }
ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
reboot() { ifdown wan 2>&1 >/dev/null ; /sbin/reboot; }