~ubuntu-branches/ubuntu/lucid/qemu-kvm/lucid-updates

« back to all changes in this revision

Viewing changes to debian/qemu-ifdown

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-09-18 10:59:44 UTC
  • Revision ID: james.westby@ubuntu.com-20090918105944-sdj0aui4cwe1hea4
Tags: 0.11.0~rc2-0ubuntu5
* debian/patches/06_set_sdl_title.patch: set the sdl title properly
  when using -name, LP: #423076
* debian/patches/07_right_ctrl_grab.patch: support right-ctrl grab
  for improved accessibility, LP: #237635
* debian/08_fix_qemu-ifup.patch: fix positional argument problem in
  qemu-ifup script, LP: #237635
* debian/install, debian/links: install qemu-ifup and qemu-ifdown to
  /usr/bin, and symlink them to the (somewhat silly) location where
  qemu expects to find an executable script, update the ifdown script
  to use the same logic in determining the bridge interface, LP: #430655

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
 
# NOTE: For this script to operate properly, it is expected that
4
 
#       you have a br0
5
 
 
6
 
BRIDGE=br0
7
 
 
8
 
/usr/sbin/brctl delif $BRIDGE $1
 
3
# NOTE: This script is intended to run in conjunction with qemu-ifup
 
4
#       which uses the same logic to find your bridge/switch
 
5
 
 
6
switch=$(/sbin/ip route list | awk '/^default / { print $5 }')
 
7
 
 
8
/usr/sbin/brctl delif $switch $1
9
9
/sbin/ifconfig $1 0.0.0.0 down