]> code.ossystems Code Review - openembedded-core.git/commitdiff
initscripts: Add support for /etc/default/urandom
authorRichard Tollerton <rich.tollerton@ni.com>
Thu, 17 Jul 2014 21:56:57 +0000 (16:56 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Jul 2014 23:08:48 +0000 (00:08 +0100)
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>
meta/recipes-core/initscripts/initscripts-1.0/urandom

index ec4ef61f23cce870d77ec4950c23200e8424664c..af1625b5fdea213f5889d6834df3336dfabf86a1 100755 (executable)
@@ -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|"")