From: florian Date: Sat, 24 Mar 2007 21:51:44 +0000 (+0000) Subject: Use MiBSD ksh if installed (#1470) X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;ds=sidebyside;h=cbfddaacee443576d27eacd7e0cce8adab15e21a;p=openwrt-10.03%2F.git Use MiBSD ksh if installed (#1470) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6687 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile index ae514b092..aee0de2b8 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; }