12345678910111213141516171819202122232425262728293031323334353637383940 |
- #!/bin/sh
- export PATH=/usr/bin:/usr/sbin:/bin:/sbin
- umask 0077
- set -e
- if [ "$1" != "stop" ]; then
-
-
-
- rm -rf /tmp/* /tmp/.[!.]* /tmp/..?*
-
-
- : > /var/run/utmp
- mkdir -m og-w /var/run/dbus
-
- if [ -e /var/state/random-seed ]; then
- cat /var/state/random-seed > /dev/urandom;
- fi
-
-
- /sbin/ifconfig lo 127.0.0.1
-
-
- echo "myhost" > /proc/sys/kernel/hostname
-
- else
-
-
-
- POOLSIZE="$(cat /proc/sys/kernel/random/poolsize)"
- dd if=/dev/urandom of=/var/state/random-seed bs="$POOLSIZE" count=1 2> /dev/null
- fi;
|