Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 19220 Details for
Bug 19695
no designated way to add static routes in gentoo(/etc/conf.d/local.start is kludgy)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/router
router (text/plain), 784 bytes, created by
Michael Locher
on 2003-10-14 07:47:14 UTC
(
hide
)
Description:
/etc/init.d/router
Filename:
MIME Type:
Creator:
Michael Locher
Created:
2003-10-14 07:47:14 UTC
Size:
784 bytes
patch
obsolete
>#!/sbin/runscript > >#NB: Config is in /etc/conf.d/router > >depend() { > need net > before dns dhcpd >} > >start() { > ebegin "Enable IP forwarding" > if [ -f /proc/sys/net/ipv4/ip_forward ]; then > echo "1" > /proc/sys/net/ipv4/ip_forward > fi > if [ -f /proc/sys/net/ipv6/conf/all/forwarding ]; then > echo "1" > /proc/sys/net/ipv6/conf/all/forwarding > fi > eend $? > > if [ ${#ROUTE[*]} -gt 0 ] ; then > einfo "Populate static routing table" > for R in "${ROUTE[@]}"; do > ebegin " add route $R " > /sbin/ip route add $R > eend $? > done > else > einfo "No static routes defined." > fi >} > >stop () { > if [ ${#ROUTE[*]} -gt 0 ] ; then > einfo "Remove static routes" > for R in "${ROUTE[@]}"; do > ebegin " del route $R " > /sbin/ip route del $R > eend $? > done > eend $? > fi >} > ># vim:ts=4
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 19695
:
11196
|
13013
|
19219
|
19220
|
27047