Преглед изворни кода

base-files: change boot & umount STOP indexes

This patch is in a series to allow additional STOP indexes after umount,
so that other block devices may stop cleanly.

boot is now STOP=90
umount is now STOP=90

After this patch series, the resulting STOP indexes in the 80s & 90s
will be:

STOP=85 odhcpd.init
STOP=89 conntrackd.init
STOP=89 log.init
STOP=89 rssileds.init
STOP=90 boot
STOP=90 kdump.init
STOP=90 network
STOP=90 sysfixtime
STOP=90 umount
STOP=98 mdadm.init (note: will be addressed in a separate patch)

Signed-off-by: Joseph Tingiris <[email protected]>
Signed-off-by: Christian Lamparter <[email protected]>
[PKG_RELEASE is now 200]
Joseph Tingiris пре 7 година
родитељ
комит
04811007e5

+ 1 - 1
package/base-files/Makefile

@@ -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:=199
+PKG_RELEASE:=200
 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 - 1
package/base-files/files/etc/init.d/boot

@@ -2,7 +2,7 @@
 # Copyright (C) 2006-2011 OpenWrt.org
 # Copyright (C) 2006-2011 OpenWrt.org
 
 
 START=10
 START=10
-STOP=98
+STOP=90
 
 
 uci_apply_defaults() {
 uci_apply_defaults() {
 	. /lib/functions/system.sh
 	. /lib/functions/system.sh

+ 1 - 1
package/base-files/files/etc/init.d/umount

@@ -1,7 +1,7 @@
 #!/bin/sh /etc/rc.common
 #!/bin/sh /etc/rc.common
 # Copyright (C) 2006 OpenWrt.org
 # Copyright (C) 2006 OpenWrt.org
 
 
-STOP=99
+STOP=90
 stop() {
 stop() {
 	sync
 	sync
 	/bin/umount -a -d -r
 	/bin/umount -a -d -r