base-files: fix logic when to show failsafe banner
[openwrt/staging/blogic.git] / package / base-files / files / etc / profile
index 8ac9d6dbb5e0d92f040480d738771f50d586d470..e9936fb36a9a937381c2bf3405a50bc9ec39cf02 100644 (file)
@@ -2,7 +2,7 @@
 [ -e /tmp/.failsafe ] && export FAILSAFE=1
 
 [ -f /etc/banner ] && cat /etc/banner
-[ -n "$FAILSAFE" ] || cat /etc/banner.failsafe
+[ -n "$FAILSAFE" ] && cat /etc/banner.failsafe
 
 fgrep -sq '/ overlay ro,' /proc/mounts && {
        echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'