Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 41131 Details for
Bug 55394
tun/tap and bridge support for net.eth0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to net init script to allow configuration of tun/tap and bridge devices
net.uml-new.diff (text/plain), 1.83 KB, created by
Jacob Joseph
on 2004-10-05 02:42:49 UTC
(
hide
)
Description:
Patch to net init script to allow configuration of tun/tap and bridge devices
Filename:
MIME Type:
Creator:
Jacob Joseph
Created:
2004-10-05 02:42:49 UTC
Size:
1.83 KB
patch
obsolete
>61a62,67 >> # Support for Tuntap and bridging devices (jacob@jjoseph.org) >> eval type_IFACE=\"\$\{type_$iface\}\" >> eval tunuser_IFACE=\"\$\{tunuser_$iface\}\" >> eval brports_IFACE=\"\$\{brports_$iface\}\" >> >> >91a98,115 >> >> # First check the interface 'type' >> if [[ ${type_IFACE} = tuntap ]]; then >> # create the device, give it the right perms >> ebegin "Creating Tun/Tap Device ${IFACE}" >> /usr/bin/tunctl -u ${tunuser_IFACE} -t ${IFACE} >> eend $? || return $? >> >> elif [[ ${type_IFACE} = bridge ]]; then >> #set up bridge >> ebegin "Creating Bridge Device ${IFACE}" >> /sbin/brctl addbr ${IFACE} && \ >> /sbin/brctl setfd ${IFACE} 0 && \ >> /sbin/brctl sethello ${IFACE} 0 && \ >> /sbin/brctl stp ${IFACE} off >> eend $? || return $? >> fi >> >213,218c237,242 >< if [[ -z ${aliases} && -z ${inet6} && ! -e /var/run/dhcpcd-${IFACE}.pid ]]; then >< ebegin "Bringing ${IFACE} down" >< ifconfig ${IFACE} down &>/dev/null >< eend 0 >< return 0 >< fi >--- >> # if [[ -z ${aliases} && -z ${inet6} && ! -e /var/run/dhcpcd-${IFACE}.pid ]]; then >> # ebegin "Bringing ${IFACE} down" >> # ifconfig ${IFACE} down &>/dev/null >> # eend 0 >> # return 0 >> # fi >254a279,283 >> # Always try to destroy the tuntap or bridge device >> # FIXME: Is there a way to check this ahead of time? >> [ -x /usr/bin/tunctl ] && /usr/bin/tunctl -d ${IFACE}&>${devnull} >> [ -x /sbin/brctl ] && /sbin/brctl delbr ${IFACE}&>${devnull}
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 55394
:
34322
| 41131