base-files: Add /etc/shinit for non-login shell init
[openwrt/staging/jogo.git] / package / base-files / files / etc / shinit
1 [ -x /bin/more ] || alias more=less
2 [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
3
4 alias ll='ls -alF --color=auto'
5
6 [ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
7
8 [ -x /usr/bin/arp -o -x /sbin/arp ] || arp() { cat /proc/net/arp; }
9 [ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
10
11 service() {
12 [ -f "/etc/init.d/$1" ] || {
13 echo "service "'"'"$1"'"'" not found, the following services are available:"
14 ls "/etc/init.d"
15 return 1
16 }
17 /etc/init.d/$@
18 }
19
20 [ -n "$KSH_VERSION" -o \! -s "$HOME/.shinit" ] || . "$HOME/.shinit"
21 [ -z "$KSH_VERSION" -o \! -s "$HOME/.mkshrc" ] || . "$HOME/.mkshrc"