diff mbox series

[OpenWrt-Devel,1/3] base-files: change boot & umount STOP levels -2

Message ID 1547409758-60054-1-git-send-email-joseph.tingiris@gmail.com
State Changes Requested
Headers show
Series [OpenWrt-Devel,1/3] base-files: change boot & umount STOP levels -2 | expand

Commit Message

Joseph Tingiris Jan. 13, 2019, 8:02 p.m. UTC
This patch is in a series to allow STOP levels after umount, so that
other block devices may stop cleanly.

boot is now STOP=96
umount is now STOP=97

Signed-off-by: Joseph Tingiris <joseph.tingiris@gmail.com>
---
 package/base-files/Makefile                | 2 +-
 package/base-files/files/etc/init.d/boot   | 2 +-
 package/base-files/files/etc/init.d/umount | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Comments

Jo-Philipp Wich Jan. 13, 2019, 8:58 p.m. UTC | #1
Hi Joseph,

I've been thinking that we maybe should lower the STOP index even
further, to at least 90.

Apart from that the patch looks good.


~ Jo
diff mbox series

Patch

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index ea1e4eb..226dd26 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:=196
+PKG_RELEASE:=197
 PKG_FLAGS:=nonshared
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index 31f245f..16f66d6 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -2,7 +2,7 @@ 
 # Copyright (C) 2006-2011 OpenWrt.org
 
 START=10
-STOP=98
+STOP=96
 
 uci_apply_defaults() {
 	. /lib/functions/system.sh
diff --git a/package/base-files/files/etc/init.d/umount b/package/base-files/files/etc/init.d/umount
index 349b2b3..63b4223 100755
--- a/package/base-files/files/etc/init.d/umount
+++ b/package/base-files/files/etc/init.d/umount
@@ -1,7 +1,7 @@ 
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org
 
-STOP=99
+STOP=97
 stop() {
 	sync
 	/bin/umount -a -d -r