diff options
-rwxr-xr-x | rc.boot | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -29,6 +29,17 @@ out "Mounting pseudo filesystems..."; { mnt /dev/shm -o mode=1777,nosuid,nodev -nt tmpfs shm } +out "Seeding random..."; { + if [ -f /var/random.seed ]; then + cat /var/random.seed > /dev/urandom + else + out "This may hang." + out "Mash the keyboard to generate entropy..." + + dd count=1 bs=512 if=/dev/random of=/var/random.seed + fi +} + out "Setting dmesg level..."; { [ -n "$dmesg_level" ] && dmesg -n$dmesg_level } @@ -110,16 +121,6 @@ out "Enabling swap..."; { swapon -a || emergency_shell } -out "Seeding random..."; { - if [ -f /var/random.seed ]; then - cat /var/random.seed > /dev/urandom - else - out "This may hang." - out "Mash the keyboard to generate entropy..." - - dd count=1 bs=512 if=/dev/random of=/var/random.seed - fi -} out "Setting up loopback..."; { ip link set up dev lo |