summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-03-17 14:44:56 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-03-17 14:44:56 +0100
commitb10756d64cc918f2dcb2db198cfe01cace851082 (patch)
tree483fa261eea65fad6d65895716c1144ff8d36293
parent8def6a0610c289f9b944eab87095d47437ba3807 (diff)
parent323a286e142616486d94769dd78a87bd984ac853 (diff)
downloadrunit-void-b10756d64cc918f2dcb2db198cfe01cace851082.tar.gz
runit-void-b10756d64cc918f2dcb2db198cfe01cace851082.tar.xz
runit-void-b10756d64cc918f2dcb2db198cfe01cace851082.zip
Merge pull request #21 from nmeum/random-seed
Random seed
-rwxr-xr-x32
1 files changed, 1 insertions, 1 deletions
diff --git a/3 b/3
index 92cfa83..5a0394a 100755
--- a/3
+++ b/3
@@ -19,7 +19,7 @@ sv exit /var/service/*
 [ -x /etc/rc.shutdown ] && /etc/rc.shutdown
 
 msg "Saving random seed...\n"
-dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 >/dev/null 2>&1
+( umask 077; dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 >/dev/null 2>&1 )
 
 if [ -z "$VIRTUALIZATION" -a -n "$HARDWARECLOCK" ]; then
     hwclock --systohc ${HARDWARECLOCK:+--$(echo $HARDWARECLOCK |tr A-Z a-z)}