r895 - trunk

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Sun Sep 19 12:34:05 PDT 2004


Author: tushar
Date: 2004-09-19 13:34:03 -0600 (Sun, 19 Sep 2004)
New Revision: 895

Modified:
   trunk/bsd-init.txt
Log:
Updated Hint: bsd-init

Modified: trunk/bsd-init.txt
===================================================================
--- trunk/bsd-init.txt	2004-09-19 19:33:04 UTC (rev 894)
+++ trunk/bsd-init.txt	2004-09-19 19:34:03 UTC (rev 895)
@@ -206,10 +206,10 @@
 /bin/hostname `cat /etc/HOSTNAME |cut -d . -f1`
 /bin/domainname `cat /etc/HOSTNAME |cut -d . -f2-`
 
-if [ -f "/tmp/random-seed" ]; then
+if [ -f "/etc/random-seed" ]; then
   echo "Initializing random number generator..."
-  /bin/cat /tmp/random-seed >/dev/urandom
-  rm -f /tmp/random-seed
+  /bin/cat /etc/random-seed >/dev/urandom
+  rm -f /etc/random-seed
 fi
 
 ### removing stale PID files is good, too
@@ -403,7 +403,7 @@
 /sbin/swapoff -a
 
 echo "Saving random seed to a temporary file..."
-/bin/dd if=/dev/urandom of=/tmp/random-seed count=1 bs=512 2>/dev/null
+/bin/dd if=/dev/urandom of=/etc/random-seed count=1 bs=512 2>/dev/null
 
 echo "Saving the system time to hardware clock..."
 /sbin/hwclock --systohc --utc
@@ -531,6 +531,10 @@
 
 
 CHANGELOG:
+[2004-09-10]
+ * changed /tmp/random-seed to /etc/random-seed in case
+ 	/tmp is mounted as tmpfs (thanks to C. T. Waley)
+
 [2004-06-05]
  * corrected a typo
  * corrected a mistake where runlevel 3 would be 5




More information about the hints mailing list