rc.d/random: bring back rc.conf defaults, minor fixes
authorAlex Hornung <alex@alexhornung.com>
Mon, 14 Jul 2014 11:43:40 +0000 (12:43 +0100)
committerAlex Hornung <alex@alexhornung.com>
Mon, 14 Jul 2014 17:29:17 +0000 (18:29 +0100)
commitceccfc6bc7912b64fce4d4cd929eaf9346d00d53
tree50567f2c80e081d85b7312570fd94f90202c0031
parentf98e2cd5692d416c26d340b8d379909206f61e73
rc.d/random: bring back rc.conf defaults, minor fixes

 * Saving the entropy across reboots is good practice to
   avoid having a lack of entropy after restarting the
   machine. For some reason, it has been disabled by default
   for ages now.

 * This commit brings back the defaults in rc.conf to enable
   saving entropy across reboots.

 * Minor fixes to rc.d/random, such as not assuming
   /var/db/entropy is a good place to put the entropy file,
   last but not least because:
    - that location is not checked on the start part of the script,
      so it won't ever be used.
    - /var/db/entropy is most of the time a directory, for the
      cron-based entropy collection.
etc/defaults/rc.conf
etc/rc.d/random
share/man/man5/rc.conf.5