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