aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2017-12-29 14:34:03 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2017-12-29 14:36:26 +0100
commit1c9299877be9f4b0aa91d9861d04f78b01d66a9d (patch)
tree3a6bfe4481b1d293c16120481598a0ee7940ef20 /package/base-files
parent2603c850602ab1d8837905b23a079dd6ab2cdf99 (diff)
downloadupstream-1c9299877be9f4b0aa91d9861d04f78b01d66a9d.tar.gz
upstream-1c9299877be9f4b0aa91d9861d04f78b01d66a9d.tar.bz2
upstream-1c9299877be9f4b0aa91d9861d04f78b01d66a9d.zip
base-files: set FAILSAFE in /etc/profile when /tmp/.failsafe exists
Since dropbear clears the environment, FAILSAFE was not set as intended in failsafe mode. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/Makefile2
-rw-r--r--package/base-files/files/etc/profile5
2 files changed, 5 insertions, 2 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 170bc3d483..1cda882bd3 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.1
+PKG_RELEASE:=173.2
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 3eda09b456..8ac9d6dbb5 100644
--- a/package/base-files/files/etc/profile
+++ b/package/base-files/files/etc/profile
@@ -1,6 +1,9 @@
#!/bin/sh
+[ -e /tmp/.failsafe ] && export FAILSAFE=1
+
[ -f /etc/banner ] && cat /etc/banner
-[ -e /tmp/.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.'
echo 'Please try to remove files from /overlay/upper/... and reboot!'