3 • Part of the FreeWRT patches:
5 – ls(1) has no -o option
6 • OpenWrt and FreeWRT-1.0 fix:
7 – since this is not ~/.mkshrc make sure subshells find it
9 --- a/dot.mkshrc Sat Nov 26 18:15:38 2011
10 +++ b/dot.mkshrc Sun Dec 11 21:31:27 2011
13 # ${ENV:-~/.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 @@ -40,7 +40,7 @@ unalias ls
26 whence -p rot13 >&- || alias rot13='tr \
27 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \
28 nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'
29 @@ -365,5 +365,9 @@ alias cls='print -n \\033c'
30 #export LANG=C LC_CTYPE=$p LC_MEASUREMENT=$p LC_MESSAGES=$p LC_PAPER=$p
34 +# we need this in OpenWrt for subshells that are not login shells
36 +[[ -z $ENV ]] || export ENV
38 : place customisations above this line