From 302aa793c0c5cddad016c61c70e01cbec52516be Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 29 Dec 2017 15:56:01 +0100 Subject: [PATCH] base-files: fix logic when to show failsafe banner Signed-off-by: Matthias Schiffer 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 d0c9d6bc29..a7cc4ca48b 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 8ac9d6dbb5..e9936fb36a 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.' -- 2.30.2