fs

morpheus filesystem files
git clone git://git.2f30.org/fs
Log | Files | Refs

commit 4f4101bc2ed126e2cf2bc9f5a9ad60ce0c9ba94f
parent b931c0bb170e8365de982ea8550420d1ca2b8728
Author: sin <sin@2f30.org>
Date:   Mon, 23 Sep 2013 15:04:57 +0100

Restore random seed on boot + stylistic updates

Diffstat:
Metc/rc.boot | 4++++
Metc/rc.shutdown | 4+++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/etc/rc.boot b/etc/rc.boot @@ -49,6 +49,10 @@ if [ -n "$HWCLOCK_PARAMS" ]; then unset TZ fi +echo Setting random seed +[ -f /etc/random-seed ] && cat /etc/random-seed >/dev/urandom +dd if=/dev/urandom of=/etc/random-seed count=1 bs=512 2>/dev/null + echo Storing dmesg output to /var/log/dmesg.log dmesg > /var/log/dmesg.log diff --git a/etc/rc.shutdown b/etc/rc.shutdown @@ -1,9 +1,10 @@ #!/bin/sh + PATH=/bin . /etc/rc.conf -echo shutting down +echo Shutting down hwclock -u -w @@ -16,6 +17,7 @@ killall5 -15 sleep 5 killall5 -9 +echo Storing random seed dd if=/dev/urandom of=/etc/random-seed count=1 bs=512 2>/dev/null echo Mounting root read-only