[OE-core] [PATCH] initscripts: correct the runlevels for urandom
Zhenbo Gao
zhenbo.gao at windriver.com
Wed Mar 9 07:45:08 UTC 2016
The description of urandom is: Save the random seed on shutdown
and restore it on boot.
So this script should be used with 'stop' at runlevel 0 and 6, and
'start' at runlevel 1 2 3 4 5.
Signed-off-by: Zhenbo Gao <zhenbo.gao at windriver.com>
---
meta/recipes-core/initscripts/initscripts-1.0/urandom | 2 +-
meta/recipes-core/initscripts/initscripts_1.0.bb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/urandom b/meta/recipes-core/initscripts/initscripts-1.0/urandom
index af1625b..8cb1b57 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/urandom
+++ b/meta/recipes-core/initscripts/initscripts-1.0/urandom
@@ -3,7 +3,7 @@
# Provides: urandom
# Required-Start: $local_fs mountvirtfs
# Required-Stop: $local_fs
-# Default-Start: S
+# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Save and restore the random seed
# Description: Save the random seed on shutdown and restore it on boot,
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 148491f..a0aa124 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -123,7 +123,7 @@ do_install () {
#
update-rc.d -r ${D} rmnologin.sh start 99 2 3 4 5 .
update-rc.d -r ${D} sendsigs start 20 0 6 .
- update-rc.d -r ${D} urandom start 38 S 0 6 .
+ update-rc.d -r ${D} urandom start 38 1 2 3 4 5 . stop 62 0 6 .
update-rc.d -r ${D} umountnfs.sh start 31 0 1 6 .
update-rc.d -r ${D} umountfs start 40 0 6 .
update-rc.d -r ${D} reboot start 90 6 .
--
1.9.1
More information about the Openembedded-core
mailing list