diff options
author | Tom Gundersen <teg@jklm.no> | 2012-05-28 22:00:55 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-05-29 12:48:18 +0200 |
commit | e09c66ded0f2d4888aafeca812dc972e52eb3972 (patch) | |
tree | 3ac2ebcabe990b71c37f1848b5e279dcd872a404 /rc.shutdown | |
parent | 854aa04187d4f65607f9b4525ca6645a0db7c9f8 (diff) | |
download | initscripts-e09c66ded0f2d4888aafeca812dc972e52eb3972.tar.xz |
random-seed: use the systemd tool
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-x | rc.shutdown | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/rc.shutdown b/rc.shutdown index ec30d56..d0d8405 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -19,18 +19,7 @@ run_hook shutdown_start stop_all_daemons -stat_busy "Saving Random Seed" - RANDOM_SEED=/var/lib/misc/random-seed - install -TDm 0600 /dev/null $RANDOM_SEED - POOL_FILE=/proc/sys/kernel/random/poolsize - if [[ -r $POOL_FILE ]]; then - read POOL_SIZE < $POOL_FILE - (( POOL_SIZE /= 8 )) - else - POOL_SIZE=512 - fi - dd if=/dev/urandom of=$RANDOM_SEED count=1 bs=$POOL_SIZE &>/dev/null -stat_done +status 'Saving Random Seed' /usr/lib/systemd/systemd-random-seed save [[ $TIMEZONE ]] && status "Configuring Time Zone" set_timezone "$TIMEZONE" |