summaryrefslogtreecommitdiff
path: root/meta/recipes-core/initscripts
diff options
context:
space:
mode:
authorRichard Tollerton <rich.tollerton@ni.com>2014-07-17 16:56:57 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-19 00:08:48 +0100
commit415e1a4ac8120b28118671698459b098c965a4f6 (patch)
tree84308e824136d1f0da28077da194899c01ac48ff /meta/recipes-core/initscripts
parentacb8674e498468088d867ffae9a458caa08d95d5 (diff)
downloadopenembedded-core-415e1a4ac8120b28118671698459b098c965a4f6.tar.gz
openembedded-core-415e1a4ac8120b28118671698459b098c965a4f6.tar.bz2
openembedded-core-415e1a4ac8120b28118671698459b098c965a4f6.zip
initscripts: Add support for /etc/default/urandom
Source /etc/default/urandom if present. This allows the rootfs to remain read-only while enabling the user to override the location of the random seed file. Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initscripts')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/urandom1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/urandom b/meta/recipes-core/initscripts/initscripts-1.0/urandom
index ec4ef61f23..af1625b5fd 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/urandom
+++ b/meta/recipes-core/initscripts/initscripts-1.0/urandom
@@ -16,6 +16,7 @@ test -c /dev/urandom || exit 0
RANDOM_SEED_FILE=/var/lib/urandom/random-seed
. /etc/default/rcS
+[ -f /etc/default/urandom ] && . /etc/default/urandom
case "$1" in
start|"")