r5261 - in trunk/BOOK: . introduction/welcome multimedia/libdriv

dj at linuxfromscratch.org dj at linuxfromscratch.org
Sat Nov 5 10:17:44 PST 2005


Author: dj
Date: 2005-11-05 11:17:43 -0700 (Sat, 05 Nov 2005)
New Revision: 5261

Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/multimedia/libdriv/alsa-utils.xml
Log:
updated alsa-restore script

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2005-11-04 19:19:42 UTC (rev 5260)
+++ trunk/BOOK/general.ent	2005-11-05 18:17:43 UTC (rev 5261)
@@ -1,4 +1,4 @@
-<!ENTITY day          "04">
+<!ENTITY day          "05">
 <!ENTITY month        "11">
 <!ENTITY year         "2005">
 <!ENTITY version      "svn-&year;&month;&day;">

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2005-11-04 19:19:42 UTC (rev 5260)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2005-11-05 18:17:43 UTC (rev 5261)
@@ -42,6 +42,16 @@
 -->
 
     <listitem>
+      <para>November 5th, 2005</para>
+      <itemizedlist>
+        <listitem>
+          <para>[dj] - Updated alsa-restore script per Alexander Patrakov's 
+          suggestions.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>November 4th, 2005</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/multimedia/libdriv/alsa-utils.xml
===================================================================
--- trunk/BOOK/multimedia/libdriv/alsa-utils.xml	2005-11-04 19:19:42 UTC (rev 5260)
+++ trunk/BOOK/multimedia/libdriv/alsa-utils.xml	2005-11-05 18:17:43 UTC (rev 5261)
@@ -141,12 +141,12 @@
 # Give up to 20 seconds for /usr to be mounted
 while [ "${x}" -lt 20 ]
 do
-    sleep 1
     if [ -f /usr/sbin/alsactl ]; then
         /usr/sbin/alsactl restore "${1}"
         exit 0
     fi
-    x=`expr "${x}" + 1`
+    x=$(( x + 1 ))
+    sleep 1
 done & # Put the loop in the background
 
 # End /etc/udev/scripts/alsa-restore




More information about the blfs-book mailing list