diff options
author | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-29 17:22:49 +0000 |
---|---|---|
committer | Ulf Samuelsson <ulf.samuelsson@atmel.com> | 2009-01-29 17:22:49 +0000 |
commit | c73c1193f315acec70964d8c183f3484f002d280 (patch) | |
tree | 5fc5779b75837b101a3a384d0891cf803f9c5232 /target/device/jp/q5/target_skeleton/etc/init.d/S20urandom | |
parent | 7785182e46851d3144441c24ed65b858e318b193 (diff) | |
download | buildroot-novena-c73c1193f315acec70964d8c183f3484f002d280.tar.gz buildroot-novena-c73c1193f315acec70964d8c183f3484f002d280.zip |
Remove jp BSP which only provide support for linux-2.4
Diffstat (limited to 'target/device/jp/q5/target_skeleton/etc/init.d/S20urandom')
-rwxr-xr-x | target/device/jp/q5/target_skeleton/etc/init.d/S20urandom | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/target/device/jp/q5/target_skeleton/etc/init.d/S20urandom b/target/device/jp/q5/target_skeleton/etc/init.d/S20urandom deleted file mode 100755 index f73cea59e..000000000 --- a/target/device/jp/q5/target_skeleton/etc/init.d/S20urandom +++ /dev/null @@ -1,54 +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 -# - -[ -c /dev/urandom ] || exit 0 -#. /etc/default/rcS - -case "$1" in - start|"") - if [ "$VERBOSE" != no ] - then - echo -n "Initializing random number generator... " - fi - # Load and then save 512 bytes, - # which is the size of the entropy pool - if [ -f /etc/random-seed ] - then - cat /etc/random-seed >/dev/urandom - fi - # check for read only file system - if ! touch /etc/random-seed 2>/dev/null - then - echo "read-only file system detected...done" - exit - fi - rm -f /etc/random-seed - umask 077 - dd if=/dev/urandom of=/etc/random-seed count=1 \ - >/dev/null 2>&1 || echo "urandom start: failed." - umask 022 - [ "$VERBOSE" != no ] && echo "done." - ;; - stop) - if ! touch /etc/random-seed 2>/dev/null - then - exit - fi - # Carry a random seed from shut-down to start-up; - # see documentation in linux/drivers/char/random.c - [ "$VERBOSE" != no ] && echo -n "Saving random seed... " - umask 077 - dd if=/dev/urandom of=/etc/random-seed count=1 \ - >/dev/null 2>&1 || echo "urandom stop: failed." - [ "$VERBOSE" != no ] && echo "done." - ;; - *) - echo "Usage: urandom {start|stop}" >&2 - exit 1 - ;; -esac |