| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | echoscip-shell system . . echo. -c 'config qemu network with xen bridge for ' |
| 4 | echoscip-shell system . . echo. $* |
| 5 | |
| 6 | # Initialise a dummy MAC address. We choose the numerically |
| 7 | # largest non-broadcast address to prevent the address getting |
| 8 | # stolen by an Ethernet bridge for STP purposes. |
| 9 | # (FE:FF:FF:FF:FF:FF) |
| 10 | ip link set $1 address fe:ff:ff:ff:ff:ff || truescip-shell system . . true. |
| 11 | |
| 12 | ip link set up dev $1 |
| 13 | brctl addif $2 $1 |