Ignore:
Timestamp:
03/18/2013 07:44:11 PM (11 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
b141cb2
Parents:
00bf2c9
Message:

Fix a url and clarify qemu scripts

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11114 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/virtualization/qemu.xml

    r00bf2c9 r71e6ae5  
    259259switch=br0
    260260
    261 if [ -n "$1" ]; then
     261if [ -n "\$1" ]; then
    262262  # Add new tap0 interface to bridge
    263   /sbin/ip link set $1 up
     263  /sbin/ip link set \$1 up
    264264  sleep 0.5s
    265   /usr/sbin/brctl addif $switch $1
     265  /usr/sbin/brctl addif \$switch \$1
    266266else
    267267  echo "Error: no interface specified"
     
    270270
    271271exit 0
    272 EOF</userinput></screen>
     272EOF
     273
     274chmod +x /etc/qemu-ifup</userinput></screen>
    273275
    274276<screen><userinput>cat &gt;&gt; /etc/qemu-ifdown &lt;&lt; EOF
     
    277279switch=br0
    278280
    279 if [ -n "$1" ]; then
     281if [ -n "\$1" ]; then
    280282  # Remove tap0 interface from bridge
    281   /usr/sbin/brctl delif $switch $1
     283  /usr/sbin/brctl delif \$switch \$1
    282284else
    283285  echo "Error: no interface specified"
     
    286288
    287289exit 0
    288 EOF</userinput></screen>
    289 
    290       </listitem>
    291 
     290EOF
     291
     292chmod +x /etc/qemu-ifdown</userinput></screen>
     293
     294      </listitem>
     295    </itemizedlist>
     296
     297      <note><para>The backslashes in the abouve script are for convenience
     298      for cut/paste operations.  The backslashes should <emphasis>not</emphasis>
     299      appear in the final scripts.</para></note>
     300
     301    <itemizedlist spacing="compact">
    292302      <listitem>
    293303        <para>Start qemu with "-net nic -net tap" options.  </para>
Note: See TracChangeset for help on using the changeset viewer.