Displaying 1 result from an estimated 1 matches for "upbridge".
Did you mean:
ubridge
2009 Feb 10
1
Scripting Oddity
...ldn't get the same result from the shell script as I got from
pasting commands onto the command line or using the shell history.
After a lot of very tedious debugging, I finally got the script to work
by adding a couple of short sleeps at selected locations. The script
now looks like:
cat upBridge.sh
#!/bin/bash
#
# Script for setting up a bridge accessible by a qemu VM.
#
# First, make sure we're starting with a clean slate.
/usr/bin/sudo /sbin/rmmod bridge
/usr/bin/sudo /sbin/rmmod tun
/usr/bin/sudo /sbin/service network restart
#
# Grab the IP address of the given interface so we can...