#!/bin/sh # # $NetBSD: REQ,v 1.2 2000/07/25 07:29:44 jlam Exp $ # PKG=$1 STAGE=$2 if [ "$STAGE" != "INSTALL" ]; then exit 0 fi if ! dd if=/dev/urandom of=/dev/null bs=1 count=1 2>/dev/null >/dev/null then cat << EOF =========================================================================== You need a working /dev/urandom for ${PKG} to work. Please make sure you have a kernel compiled from a config file containing the line: pseudo-device rnd =========================================================================== EOF exit 1 fi exit 0