diff options
author | Juan RP <xtraeme@gmail.com> | 2014-08-29 19:46:03 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-08-29 19:46:03 +0200 |
commit | 38934cf5018334d73bcea194845e3ae3fcc94bda (patch) | |
tree | 5ba7f2755c43003ea5cc7bdc9d7834fff6c5f321 /core-services | |
parent | 3aed781f86958215878bea66e7302da575e010e6 (diff) | |
download | runit-void-38934cf5018334d73bcea194845e3ae3fcc94bda.tar.gz runit-void-38934cf5018334d73bcea194845e3ae3fcc94bda.tar.xz runit-void-38934cf5018334d73bcea194845e3ae3fcc94bda.zip |
core-services/05-misc.sh: initialize random seed earlier.
Diffstat (limited to 'core-services')
-rw-r--r-- | core-services/05-misc.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core-services/05-misc.sh b/core-services/05-misc.sh index b2e41d4..11ce1e6 100644 --- a/core-services/05-misc.sh +++ b/core-services/05-misc.sh @@ -1,5 +1,9 @@ # vim: set ts=4 sw=4 et: +msg "Initializing random seed...\n" +cp /var/lib/random-seed /dev/urandom >/dev/null 2>&1 || true +( umask 077; dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 >/dev/null 2>&1 ) + msg "Setting up loopback interface...\n" ip link set up dev lo @@ -15,7 +19,3 @@ if [ -n "$TIMEZONE" ]; then msg "Setting up timezone to '${TIMEZONE}'...\n" ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime fi - -msg "Initializing random seed...\n" -cp /var/lib/random-seed /dev/urandom >/dev/null 2>&1 || true -( umask 077; dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 >/dev/null 2>&1 ) |