diff options
Diffstat (limited to '3')
-rwxr-xr-x | 3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/3 b/3 index 42d6c22..7945490 100755 --- a/3 +++ b/3 @@ -18,14 +18,16 @@ sv exit /var/service/* [ -x /etc/rc.shutdown ] && /etc/rc.shutdown -msg "Saving random seed..." -( umask 077; bytes=$(cat /proc/sys/kernel/random/poolsize) || bytes=512; dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=$bytes >/dev/null 2>&1 ) +if [ -z "$VIRTUALIZATION" ]; then + msg "Saving random seed..." + ( umask 077; bytes=$(cat /proc/sys/kernel/random/poolsize) || bytes=512; dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=$bytes >/dev/null 2>&1 ) +fi if [ -z "$VIRTUALIZATION" -a -n "$HARDWARECLOCK" ]; then hwclock --systohc ${HARDWARECLOCK:+--$(echo $HARDWARECLOCK |tr A-Z a-z)} fi -halt -w # for utmp +halt -w # for wtmp if [ -z "$VIRTUALIZATION" ]; then msg "Stopping udev..." |