Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 121179 Details for
Bug 157987
KVM user space (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
scripts-qemu-ifup.patch
scripts-qemu-ifup.patch (text/plain), 847 bytes, created by
Matthew Schultz
on 2007-06-04 18:01:18 UTC
(
hide
)
Description:
scripts-qemu-ifup.patch
Filename:
MIME Type:
Creator:
Matthew Schultz
Created:
2007-06-04 18:01:18 UTC
Size:
847 bytes
patch
obsolete
>--- scripts/qemu-ifup.orig 2007-04-28 12:43:42.514362441 -0500 >+++ scripts/qemu-ifup 2007-04-28 14:30:36.507875100 -0500 >@@ -1,5 +1,19 @@ > #!/bin/sh >- >-switch=$(/sbin/ip route list | awk '/^default / { print $NF }') >-/sbin/ifconfig $1 0.0.0.0 up >-/usr/sbin/brctl addif ${switch} $1 >+cmd="" >+if [ "$EUID" != 0 ]; then >+ if [ -x "/usr/bin/sudo" ]; then >+ cmd="/usr/bin/sudo " >+ else >+ echo "You must have sudo or root privileges to bring up a network interface" >+ exit 0 >+ fi >+fi >+echo "Bringing up interface $1" >+switch=$(/sbin/ip route list | awk '/^default / { print $5 }') >+if [[ $(/sbin/ifconfig | grep -c $1) -gt 0 ]]; then >+ ${cmd}/sbin/brctl delif ${switch} $1 >+ ${cmd}/sbin/ifconfig $1 down >+fi >+${cmd}/usr/bin/tunctl -u $(/usr/bin/whoami) -t $1 >+${cmd}/sbin/ifconfig $1 0.0.0.0 promisc up >+${cmd}/sbin/brctl addif ${switch} $1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 157987
:
108867
|
109180
|
109596
|
109612
|
109613
|
109614
|
109615
|
109929
|
110542
|
110544
|
111591
|
111593
|
111594
|
111721
|
111722
|
111725
|
111726
|
111727
|
111730
|
111731
|
111732
|
117585
|
117587
|
117589
|
117590
|
117592
|
117594
|
117595
|
117596
|
117597
|
119450
|
119452
|
119454
|
120155
|
120283
|
120488
|
121167
|
121170
|
121172
|
121174
|
121176
|
121177
|
121179
|
121181
|
121183
|
124934
|
124936
|
124937
|
124939
|
125905
|
125989
|
125991
|
125993
|
125994
|
125996
|
126072
|
130577
|
131298
|
132381
|
132382
|
132422
|
132486
|
132866
|
132899
|
133157
|
133510
|
133515
|
133859
|
137185
|
137723
|
137946
|
139324
|
139488
|
140913