base-files: fix logic when to show failsafe banner
authorMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 29 Dec 2017 14:56:01 +0000 (15:56 +0100)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Fri, 29 Dec 2017 14:59:17 +0000 (15:59 +0100)
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Fixes: 1c9299877be9 ("base-files: set FAILSAFE in /etc/profile when
/tmp/.failsafe exists")

package/base-files/Makefile
package/base-files/files/etc/profile

index 1cda882bd3fbe4304a4b669cab8ab7f40c4274c1..3fcf20a84433eb1a41e970cd010cc414bb180fad 100644 (file)
@@ -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/
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.'