2 [ -f /etc
/banner ] && cat /etc
/banner
3 [ -e /tmp
/.failsafe
] && cat /etc
/banner.failsafe
4 fgrep
-sq '/ overlay ro,' /proc
/mounts
&& {
5 echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'
6 echo 'Please try to remove files from /overlay/upper/... and reboot!'
9 export PATH
=/usr
/sbin
:/usr
/bin
:/sbin
:/bin
10 export HOME
=$
(grep -e "^${USER:-root}:" /etc
/passwd | cut
-d ":" -f 6)
11 export HOME
=${HOME:-/root}
12 export PS1
='\u@\h:\w\$ '
14 [ -x /bin
/more ] ||
alias more=less
15 [ -x /usr
/bin
/vim
] && alias vi
=vim ||
alias vim
=vi
17 [ -z "$KSH_VERSION" -o \
! -s /etc
/mkshrc
] || .
/etc
/mkshrc
19 [ -x /usr
/bin
/arp
] || arp
() { cat /proc
/net
/arp
; }
20 [ -x /usr
/bin
/ldd
] || ldd
() { LD_TRACE_LOADED_OBJECTS
=1 $
*; }
22 [ -n "$FAILSAFE" ] ||
{
23 for FILE
in /etc
/profile.d
/*.sh
; do
24 [ -e "$FILE" ] && .
"$FILE"