[source] base-files: fix logic when to show failsafe banner

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 29 06:58:24 PST 2017


neoraider pushed a commit to source.git, branch master:
https://git.lede-project.org/302aa793c0c5cddad016c61c70e01cbec52516be

commit 302aa793c0c5cddad016c61c70e01cbec52516be
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Fri Dec 29 15:56:01 2017 +0100

    base-files: fix logic when to show failsafe banner
    
    Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
    Fixes: 8170f280c4 ("base-files: set FAILSAFE in /etc/profile when
    /tmp/.failsafe exists")
---
 package/base-files/Makefile          | 2 +-
 package/base-files/files/etc/profile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index d0c9d6b..a7cc4ca 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
 include $(INCLUDE_DIR)/feeds.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=180
+PKG_RELEASE:=181
 PKG_FLAGS:=nonshared
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
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.'



More information about the lede-commits mailing list