mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-22 18:02:46 +00:00
base-files: fix logic when to show failsafe banner
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Fixes: 1c9299877be9 ("base-files: set FAILSAFE in /etc/profile when /tmp/.failsafe exists")
This commit is contained in:
parent
1c9299877b
commit
a1908023cc
@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
include $(INCLUDE_DIR)/version.mk
|
include $(INCLUDE_DIR)/version.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=173.2
|
PKG_RELEASE:=173.3
|
||||||
PKG_FLAGS:=nonshared
|
PKG_FLAGS:=nonshared
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
[ -e /tmp/.failsafe ] && export FAILSAFE=1
|
[ -e /tmp/.failsafe ] && export FAILSAFE=1
|
||||||
|
|
||||||
[ -f /etc/banner ] && cat /etc/banner
|
[ -f /etc/banner ] && cat /etc/banner
|
||||||
[ -n "$FAILSAFE" ] || cat /etc/banner.failsafe
|
[ -n "$FAILSAFE" ] && cat /etc/banner.failsafe
|
||||||
|
|
||||||
fgrep -sq '/ overlay ro,' /proc/mounts && {
|
fgrep -sq '/ overlay ro,' /proc/mounts && {
|
||||||
echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'
|
echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user