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!'
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 [ "$TERM" = "xterm" ] && export PS1
='\[\e]0;\u@\h: \w\a\]'$PS1
16 [ -x /bin
/more ] ||
alias more=less
17 [ -x /usr
/bin
/vim
] && alias vi
=vim ||
alias vim
=vi
19 alias ll
='ls -alF --color=auto'
21 [ -z "$KSH_VERSION" -o \
! -s /etc
/mkshrc
] || .
/etc
/mkshrc
23 [ -x /usr
/bin
/arp
-o -x /sbin
/arp
] || arp
() { cat /proc
/net
/arp
; }
24 [ -x /usr
/bin
/ldd
] || ldd
() { LD_TRACE_LOADED_OBJECTS
=1 $
*; }
26 [ -n "$FAILSAFE" ] ||
{
27 for FILE
in /etc
/profile.d
/*.sh
; do
28 [ -e "$FILE" ] && .
"$FILE"
33 if ( grep -qs '^root::' /etc
/shadow
&& \
37 === WARNING! =====================================
38 There is no root password defined on this device!
39 Use the "passwd" command to set up a new password
40 in order to prevent unauthorized SSH logins.
41 --------------------------------------------------
46 [ -f "/etc/init.d/$1" ] ||
{
47 echo "service "'"'"$1"'"'" not found, the following services are available:"