aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2006-01-21 20:58:24 +0000
committerJudd Vinet <judd@archlinux.org>2006-01-21 20:58:24 +0000
commitbd6701616508c5bb21de9166e9b1daa6fe1de769 (patch)
tree3c20f80e4f17fdbe5e1bc9a161cc3165aad61f40 /rc.sysinit
parente4af7e36ba40ab49993fcc4232dcebdedc1763b9 (diff)
downloadinitscripts-bd6701616508c5bb21de9166e9b1daa6fe1de769.tar.xz
fixed random-seed restoration
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit12
1 files changed, 6 insertions, 6 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 3bbdae0..8d1047f 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -173,6 +173,12 @@ if [ "$TIMEZONE" != "" ]; then
fi
stat_done
+if [ -f /var/run/random-seed ]; then
+ stat_busy "Initializing Random Seed"
+ /bin/cat /var/run/random-seed >/dev/urandom
+ stat_done
+fi
+
stat_busy "Removing Leftover Files"
/bin/rm -f /etc/nologin &>/dev/null
/bin/rm -f /etc/shutdownpid &>/dev/null
@@ -200,12 +206,6 @@ fi
status "Updating Module Dependencies" /sbin/depmod -A
-if [ -f /var/run/random-seed ]; then
- stat_busy "Initializing Random Seed"
- /bin/cat /var/run/random-seed >/dev/urandom
- stat_done
-fi
-
if [ "$KEYMAP" != "" ]; then
status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q $KEYMAP
fi