1 [ -e /tmp/.failsafe ] && export FAILSAFE=1
3 [ -f /etc/banner ] && cat /etc/banner
4 [ -n "$FAILSAFE" ] && cat /etc/banner.failsafe
6 fgrep -sq '/ overlay ro,' /proc/mounts && {
7 echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'
8 echo 'Please try to remove files from /overlay/upper/... and reboot!'
12 export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
13 export HOME=${HOME:-/root}
14 export PS1='\u@\h:\w\$ '
15 export ENV=/etc/shinit
19 export PS1='\[\e]0;\u@\h: \w\a\]'$PS1
23 [ -n "$FAILSAFE" ] || {
24 for FILE in /etc/profile.d/*.sh; do
25 [ -e "$FILE" ] && . "$FILE"
30 if ( grep -qs '^root::' /etc/shadow && \
34 === WARNING! =====================================
35 There is no root password defined on this device!
36 Use the "passwd" command to set up a new password
37 in order to prevent unauthorized SSH logins.
38 --------------------------------------------------