aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rcS.d/220-random.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rcS.d/220-random.sh')
-rwxr-xr-xrc.d/rcS.d/220-random.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/rc.d/rcS.d/220-random.sh b/rc.d/rcS.d/220-random.sh
deleted file mode 100755
index fa1102ad..00000000
--- a/rc.d/rcS.d/220-random.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-[[ $(type -t strstr) = "function" ]] || . /etc/init.d/functions
-[[ $cmdline ]] || cmdline=$(cat /proc/cmdline)
-
-READONLY=no
-if [ -f /etc/sysconfig/readonly-root ]; then
- . /etc/sysconfig/readonly-root
-fi
-if strstr "$cmdline" readonlyroot ; then
- READONLY=yes
- [ -z "$RW_MOUNT" ] && RW_MOUNT=/var/lib/stateless/writable
- [ -z "$STATE_MOUNT" ] && STATE_MOUNT=/var/lib/stateless/state
-fi
-if strstr "$cmdline" noreadonlyroot ; then
- READONLY=no
-fi
-
-# Initialize pseudo-random number generator
-if [ -f "/var/lib/random-seed" ]; then
- cat /var/lib/random-seed > /dev/urandom
-else
- [ "$READONLY" != "yes" ] && touch /var/lib/random-seed
-fi
-if [ "$READONLY" != "yes" ]; then
- chmod 600 /var/lib/random-seed
- dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null
-fi
-: