Author: bdubbs
Date: Mon Mar 18 12:44:11 2013
New Revision: 11114

Log:
Fix a url and clarify qemu scripts

Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/postlfs/virtualization/qemu.xml

Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent      Sun Mar 17 23:56:56 2013        (r11113)
+++ trunk/BOOK/general.ent      Mon Mar 18 12:44:11 2013        (r11114)
@@ -24,7 +24,7 @@
 <!ENTITY downloads-project    "http://downloads.&lfs-domainname;";>
 <!ENTITY sources-anduin-http  
"http://anduin.&lfs-domainname;/sources/BLFS/svn";>
 <!ENTITY sources-anduin-ftp   "ftp://anduin.&lfs-domainname;/BLFS/svn";>
-<!ENTITY sources-anduin-other-http "http://anduin.&lfs-domainname;/other";>
+<!ENTITY sources-anduin-other-http 
"http://anduin.&lfs-domainname;/sources/other";>
 <!ENTITY sources-anduin-other "ftp://anduin.&lfs-domainname;/other";>
 <!ENTITY files-anduin         "http://anduin.&lfs-domainname;/files/BLFS/svn";>
 <!ENTITY hints-root           "http://www.&lfs-domainname;/hints";>

Modified: trunk/BOOK/postlfs/virtualization/qemu.xml
==============================================================================
--- trunk/BOOK/postlfs/virtualization/qemu.xml  Sun Mar 17 23:56:56 2013        
(r11113)
+++ trunk/BOOK/postlfs/virtualization/qemu.xml  Mon Mar 18 12:44:11 2013        
(r11114)
@@ -258,37 +258,47 @@
 
 switch=br0
 
-if [ -n "$1" ]; then
+if [ -n "\$1" ]; then
   # Add new tap0 interface to bridge
-  /sbin/ip link set $1 up
+  /sbin/ip link set \$1 up
   sleep 0.5s
-  /usr/sbin/brctl addif $switch $1
+  /usr/sbin/brctl addif \$switch \$1
 else
   echo "Error: no interface specified"
   exit 1
 fi
 
 exit 0
-EOF</userinput></screen>
+EOF
+
+chmod +x /etc/qemu-ifup</userinput></screen>
 
 <screen><userinput>cat &gt;&gt; /etc/qemu-ifdown &lt;&lt; EOF
 #!/bin/bash
 
 switch=br0
 
-if [ -n "$1" ]; then
+if [ -n "\$1" ]; then
   # Remove tap0 interface from bridge
-  /usr/sbin/brctl delif $switch $1
+  /usr/sbin/brctl delif \$switch \$1
 else
   echo "Error: no interface specified"
   exit 1
 fi
 
 exit 0
-EOF</userinput></screen>
+EOF
+
+chmod +x /etc/qemu-ifdown</userinput></screen>
 
       </listitem>
+    </itemizedlist>
+
+      <note><para>The backslashes in the abouve script are for convenience
+      for cut/paste operations.  The backslashes should 
<emphasis>not</emphasis>
+      appear in the final scripts.</para></note>
 
+    <itemizedlist spacing="compact">
       <listitem>
         <para>Start qemu with "-net nic -net tap" options.  </para>
       </listitem>
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to