Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
qemu-linux-user.1643
qemu-ifup
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qemu-ifup of Package qemu-linux-user.1643
#!/bin/sh # sample bridge qemu-ifup script echo 'configuring qemu network with bridge for' $* # If bridge is not specified, try device with default route. bridge=$2 if [ -z "$bridge" ]; then bridge=$(/sbin/ip route list | /usr/bin/awk '/^default / { print $5 }') fi # Exit if $bridge is not a bridge. Exit with 0 status # so qemu process is not terminated and provide message # about failure to setup network. if [ ! -e "/sys/class/net/${bridge}/bridge" ] then echo "WARNING! ${bridge} is not a bridge. qemu-ifup exiting. VM may not have a functioning networking stack." exit 0 fi /sbin/ip link set $1 up /sbin/brctl addif $bridge $1 || true
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor