mirror of https://github.com/hak5/openwrt-owl.git
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. This also broke sysupgrade from failsafe mode over SSH. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>owl
parent
20c349f68c
commit
8170f280c4
|
@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
|
||||||
include $(INCLUDE_DIR)/feeds.mk
|
include $(INCLUDE_DIR)/feeds.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=179
|
PKG_RELEASE:=180
|
||||||
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/
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
[ -e /tmp/.failsafe ] && export FAILSAFE=1
|
||||||
|
|
||||||
[ -f /etc/banner ] && cat /etc/banner
|
[ -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 && {
|
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.'
|
||||||
echo 'Please try to remove files from /overlay/upper/... and reboot!'
|
echo 'Please try to remove files from /overlay/upper/... and reboot!'
|
||||||
|
|
Loading…
Reference in New Issue