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

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 29 07:00:11 PST 2017


neoraider pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/a1908023cc398c3df53f8a33a0c9f93bb200db5b

commit a1908023cc398c3df53f8a33a0c9f93bb200db5b
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: 1c9299877be9 ("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 1cda882..3fcf20a 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
 include $(INCLUDE_DIR)/version.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=173.2
+PKG_RELEASE:=173.3
 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