Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 40253 Details for
Bug 65153
New bridge init script - better for VPN
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
New bridge init script
bridge (text/plain), 1.09 KB, created by
James Le Cuirot
on 2004-09-23 16:43:09 UTC
(
hide
)
Description:
New bridge init script
Filename:
MIME Type:
Creator:
James Le Cuirot
Created:
2004-09-23 16:43:09 UTC
Size:
1.09 KB
patch
obsolete
>#!/sbin/runscript > >depend() { > use modules >} > >start() { > for b in ${bridge} > do > ebegin "Create Bridge ${b}" > /sbin/brctl addbr ${b} || { > retval=$? > eend ${retval} "Failed to create bridge ${b}" > continue > } > for i in $(eval echo \$\{bridge_${b}_devices\}) > do > /etc/init.d/net.${i} start || \ > eend $? "Failed to set up interface ${i}" > /sbin/brctl addif ${b} ${i} || { > retval=$? > eend ${retval} "Failed to add interface ${i}" > continue > } > done > > /etc/init.d/net.${b} start || \ > eend $? "Failed to set up bridge ${b}" > done > > sleep 8 >} > >stop() { > for b in ${bridge} > do > ebegin "Destroy Bridge ${b}" > > /etc/init.d/net.${b} stop || \ > eend $? "Failed to set down bridge ${b}" > > for i in $(eval echo \$\{bridge_${b}_devices\}) > do > /etc/init.d/net.${i} stop || \ > eend $? "Failed to set down interface ${i}" > /sbin/brctl delif ${b} ${i} || { > retval=$? > eend ${retval} "Failed to del interface ${i}" > return ${retval} > } > done > /sbin/brctl delbr ${b} || \ > eend ${retval} "Failed to destroy bridge ${b}" > done > eend $? "Failed to stop bridge" >}
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 Raw
Actions:
View
Attachments on
bug 65153
: 40253 |
40254