aboutsummaryrefslogtreecommitdiff
path: root/system/bit-babbler/README.Slackware
diff options
context:
space:
mode:
authorawg <awg@cock.li>2019-03-11 09:27:25 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-03-16 06:53:18 +0700
commit8c7340ae42a454a8d7a43e62c470be76b681c6d8 (patch)
treebf8dc67c1e276661f9de73978174a5dcdfec4c41 /system/bit-babbler/README.Slackware
parent9bc9b438ce52b38d7c818d1e8ab089c89461f7ec (diff)
system/bit-babbler: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/bit-babbler/README.Slackware')
-rw-r--r--system/bit-babbler/README.Slackware43
1 files changed, 23 insertions, 20 deletions
diff --git a/system/bit-babbler/README.Slackware b/system/bit-babbler/README.Slackware
index d807cf93ed644..a1b05b91eb7c9 100644
--- a/system/bit-babbler/README.Slackware
+++ b/system/bit-babbler/README.Slackware
@@ -1,26 +1,29 @@
-To begin: groupadd "bit-babbler", or place a modified copy of
-90-bit-babbler.rules (found in /lib/udev/rules.d/) into /etc/udev/rules.d
-that uses an existing group (e.g., "wheel"). For consistency, change
-socket-group in /etc/bit-babbler/seedd.conf to use the same group.
+To have have BitBabbler device(s) begin feeding entropy to the kernel
+at boot, add these lines to /etc/rc.d/rc.local:
-To have your BitBabbler device(s) start feeding entropy to the
-kernel at boot:
+ # Start BitBabbler TRNG.
+ if [ -x /etc/rc.d/rc.seedd ]; then
+ . /etc/rc.d/rc.seedd start
+ fi
-1. Add the following lines to /etc/rc.d/rc.local:
+It's a good idea to stop devices before capturing the entropy pool
+on reboot/shutdown, so add these lines to /etc/rc.d/rc.local_shutdown:
- # Start BitBabbler TRNG.
- if [ -x /etc/rc.d/rc.seedd ]; then
- . /etc/rc.d/rc.seedd start
- fi
+ # Stop BitBabbler TRNG.
+ if [ -x /etc/rc.d/rc.seedd ]; then
+ . /etc/rc.d/rc.seedd stop
+ fi
-2. Add the following to /etc/rc.d/rc.local_shutdown:
+Additional changes to the operating configuration of BitBabbler
+devices on boot can be set in /etc/bit-babbler/seedd.conf.
- # Stop BitBabbler TRNG.
- if [ -x /etc/rc.d/rc.seedd ]; then
- . /etc/rc.d/rc.seedd stop
- fi
+Finally, ensure relevant files are executable:
+ chmod 755 /etc/rc.d/rc.local \
+ /etc/rc.d/rc.local_shutdown \
+ /etc/rc.d/rc.seedd
+
+N.B. If changes to the udev rules are needed,
+ cp /lib/udev/rules.d/90-bit-babbler.rules /etc/udev/rules.d
+and modify the copy in /etc/udev/rules.d. eudev will only use the
+copy in /etc/udev/rules.d if the filenames are the same.
-3. Make sure the execute bit is set (chmod) for
- /etc/rc.d/rc.local
- /etc/rc.d/rc.local_shutdown
- /etc/rc.d/rc.seedd