On Sat, Jul 01, 2017 at 09:35:09PM -0700, Philip Guenther wrote:
On Sat, Jul 1, 2017 at 9:27 PM, Klemens Nanni <k...@posteo.org> wrote:
A simple command list suffices as this is just about redirecting all
output at once.

Feedback/OK?
...
+       {dmesg; cat $CGI_INFO /*.conf; sysctl; route -n show; df;

This code has not been tested (and does not work).
The code has of course been tested but that diff indeed lacks a
whitespace. My bad, sorry.

The trailing semicolon after df may be omitted.

Index: install.sub
===================================================================
RCS file: /cvs/src/distrib/miniroot/install.sub,v
retrieving revision 1.1016
diff -u -p -r1.1016 install.sub
--- install.sub 30 Jun 2017 16:46:02 -0000      1.1016
+++ install.sub 2 Jul 2017 04:02:08 -0000
@@ -2432,8 +2433,8 @@ mount_fs() {

# Feed the random pool some entropy before we read from it.
feed_random() {
-       (dmesg; cat $CGI_INFO /*.conf; sysctl; route -n show; df;
-               ifconfig -A; hostname) >/dev/random 2>&1
+       { dmesg; cat $CGI_INFO /*.conf; sysctl; route -n show; df;
+               ifconfig -A; hostname;} >/dev/random 2>&1
        if [[ -e /mnt/var/db/host.random ]]; then
                dd if=/mnt/var/db/host.random of=/dev/random bs=65536 count=1 \
                        status=none

Reply via email to