up 300 B

123456789101112131415161718
  1. #!/bin/execlineb -P
  2. unexport SEED
  3. envfile -I /etc/s6/config/random-seed.conf
  4. importas -uD "/var/lib/misc/random-seed" -S SEED
  5. fdmove -c 2 1
  6. redirfd -w 2 /dev/null
  7. umask 077
  8. foreground {
  9. if -n { test -f "${SEED}" }
  10. install -Dm 600 /dev/null "${SEED}"
  11. }
  12. foreground { cp "${SEED}" /dev/urandom }