3 • Part of the FreeWRT patches:
7 – since this is not ~/.mkshrc make sure subshells find it
9 --- mksh/dot.mkshrc~ 2009-05-31 19:17:57.000000000 +0200
10 +++ mksh/dot.mkshrc 2009-06-12 17:37:18.000000000 +0200
13 # ~/.mkshrc: mksh initialisation file for interactive shells
15 -: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(ulimit -c 0;hostname -s 2>&-)}
16 +: ${EDITOR:=/bin/ed} ${TERM:=vt100} ${HOSTNAME:=$(</proc/sys/kernel/hostname)}
17 [[ $HOSTNAME = @(localhost|*([ ])) ]] && HOSTNAME=$(ulimit -c 0;hostname 2>&-)
18 : ${HOSTNAME:=nil}; if (( USER_ID )); then PS1='$'; else PS1='#'; fi
20 @@ -38,7 +38,7 @@ unalias ls
26 alias which='whence -p'
27 whence -p rot13 >&- || alias rot13='tr \
28 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \
29 @@ -283,4 +283,8 @@ function Lstripcom {
33 +# we need this in OpenWrt for subshells that are not login shells
35 +[[ -z $ENV ]] || export ENV
37 : place customsations above this line