diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-09 09:47:41 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-09 09:47:41 +0000 |
commit | 2c5b8ec6d95cf68650265941530e5ce38c8dd6d9 (patch) | |
tree | bf879bea7ef8517ba8c3d1286ef300401d3d484c /initscripts/initscripts-1.0/urandom | |
parent | 101e2f1623def0a355d20aacb8bd93810703e834 (diff) |
Merge oe-devel@oe-devel.bkbits.net:openembedded
into hyperion.kergoth.com:/home/kergoth/code/openembedded
2004/12/09 03:39:39-06:00 kergoth.com!kergoth
Break people's builds again.. this time moving the packages into a packages/ subdir to clean things up a bit.
BKrev: 41b81f3dvlp3rU7_8MUXLcI8LDdDoA
Diffstat (limited to 'initscripts/initscripts-1.0/urandom')
-rw-r--r-- | initscripts/initscripts-1.0/urandom | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/initscripts/initscripts-1.0/urandom b/initscripts/initscripts-1.0/urandom deleted file mode 100644 index 45c41d758b..0000000000 --- a/initscripts/initscripts-1.0/urandom +++ /dev/null @@ -1,41 +0,0 @@ -#! /bin/sh -# -# urandom This script saves the random seed between reboots. -# It is called from the boot, halt and reboot scripts. -# -# Version: @(#)urandom 1.33 22-Jun-1998 miquels@cistron.nl -# - -test -c /dev/urandom || exit 0 -. /etc/default/rcS - -case "$1" in - start|"") - test "$VERBOSE" != no && echo "Initializing random number generator..." - # Load and then save 512 bytes, - # which is the size of the entropy pool - if test -f /var/lib/urandom/random-seed - then - cat /var/lib/urandom/random-seed >/dev/urandom - fi - rm -f /var/lib/urandom/random-seed - umask 077 - dd if=/dev/urandom of=/var/lib/urandom/random-seed count=1 \ - >/dev/null 2>&1 || echo "urandom start: failed." - umask 022 - ;; - stop) - # Carry a random seed from shut-down to start-up; - # see documentation in linux/drivers/char/random.c - test "$VERBOSE" != no && echo "Saving random seed..." - umask 077 - dd if=/dev/urandom of=/var/lib/urandom/random-seed count=1 \ - >/dev/null 2>&1 || echo "urandom stop: failed." - ;; - *) - echo "Usage: urandom {start|stop}" >&2 - exit 1 - ;; -esac - -exit 0 |