summaryrefslogtreecommitdiffstats
path: root/meta
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:09:00 +0100
commitb163ba19de819a25fc509134167b986a7f9a1c52 (patch)
treef7e1ee03caa1ec1f62294d0bb52ab11f543a0cbd /meta
parent0327db6b074f339f5ac9c919facb5e7e733829df (diff)
downloadpoky-b163ba19de819a25fc509134167b986a7f9a1c52.tar.gz
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. (From OE-Core rev: 415e1a4ac8120b28118671698459b098c965a4f6) 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')
-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
16RANDOM_SEED_FILE=/var/lib/urandom/random-seed 16RANDOM_SEED_FILE=/var/lib/urandom/random-seed
17 17
18. /etc/default/rcS 18. /etc/default/rcS
19[ -f /etc/default/urandom ] && . /etc/default/urandom
19 20
20case "$1" in 21case "$1" in
21 start|"") 22 start|"")