summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/profile
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2017-12-29 15:56:01 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2017-12-29 15:58:16 +0100
commit302aa793c0c5cddad016c61c70e01cbec52516be (patch)
treef0ca41c0f359feb4d43fa5b72141eee0373e8820 /package/base-files/files/etc/profile
parent9c312ef628b7a8c3d7ff066022a9705fcc68dd73 (diff)
downloadmtk-20170518-302aa793c0c5cddad016c61c70e01cbec52516be.zip
mtk-20170518-302aa793c0c5cddad016c61c70e01cbec52516be.tar.gz
mtk-20170518-302aa793c0c5cddad016c61c70e01cbec52516be.tar.bz2
base-files: fix logic when to show failsafe banner
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Fixes: 8170f280c4 ("base-files: set FAILSAFE in /etc/profile when /tmp/.failsafe exists")
Diffstat (limited to 'package/base-files/files/etc/profile')
-rw-r--r--package/base-files/files/etc/profile2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile
index 8ac9d6d..e9936fb 100644
--- a/package/base-files/files/etc/profile
+++ b/package/base-files/files/etc/profile
@@ -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.'