1dfc23ba5SDag-Erling Smørgrav#!/bin/sh 2dfc23ba5SDag-Erling Smørgrav#- 3dfc23ba5SDag-Erling Smørgrav# Copyright (c) 2013 Dag-Erling Smørgrav 4dfc23ba5SDag-Erling Smørgrav# All rights reserved. 5dfc23ba5SDag-Erling Smørgrav# 6dfc23ba5SDag-Erling Smørgrav# Redistribution and use in source and binary forms, with or without 7dfc23ba5SDag-Erling Smørgrav# modification, are permitted provided that the following conditions 8dfc23ba5SDag-Erling Smørgrav# are met: 9dfc23ba5SDag-Erling Smørgrav# 1. Redistributions of source code must retain the above copyright 10dfc23ba5SDag-Erling Smørgrav# notice, this list of conditions and the following disclaimer. 11dfc23ba5SDag-Erling Smørgrav# 2. Redistributions in binary form must reproduce the above copyright 12dfc23ba5SDag-Erling Smørgrav# notice, this list of conditions and the following disclaimer in the 13dfc23ba5SDag-Erling Smørgrav# documentation and/or other materials provided with the distribution. 14dfc23ba5SDag-Erling Smørgrav# 15dfc23ba5SDag-Erling Smørgrav# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16dfc23ba5SDag-Erling Smørgrav# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17dfc23ba5SDag-Erling Smørgrav# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18dfc23ba5SDag-Erling Smørgrav# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19dfc23ba5SDag-Erling Smørgrav# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20dfc23ba5SDag-Erling Smørgrav# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21dfc23ba5SDag-Erling Smørgrav# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22dfc23ba5SDag-Erling Smørgrav# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23dfc23ba5SDag-Erling Smørgrav# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24dfc23ba5SDag-Erling Smørgrav# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25dfc23ba5SDag-Erling Smørgrav# SUCH DAMAGE. 26dfc23ba5SDag-Erling Smørgrav# 27dfc23ba5SDag-Erling Smørgrav 28*ed27536fSDevin Teskeumask 077 29*ed27536fSDevin Teskefor i in /entropy /boot/entropy; do 30*ed27536fSDevin Teske i="$BSDINSTALL_CHROOT/$i" 31*ed27536fSDevin Teske dd if=/dev/random of="$i" bs=4096 count=1 32*ed27536fSDevin Teske chown 0:0 "$i" 33*ed27536fSDevin Teskedone 34