Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 72810 Details for
Bug 112049
baselayout-1.12.0_pre10 : pppd net module - updetach & linkname pppd params
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/lib/rcscripts/net.modules.d/helpers.d/pppd-wrapper
pppd-wrapper (text/plain), 1.15 KB, created by
Alin Năstac (RETIRED)
on 2005-11-13 01:52:59 UTC
(
hide
)
Description:
/lib/rcscripts/net.modules.d/helpers.d/pppd-wrapper
Filename:
MIME Type:
Creator:
Alin Năstac (RETIRED)
Created:
2005-11-13 01:52:59 UTC
Size:
1.15 KB
patch
obsolete
>#!/bin/bash ># Copyright (c) 2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > ># Contributed by Roy Marples (uberlord@gentoo.org) > >. /lib/rcscripts/net.modules.d/helpers.d/module-loader > >action="$1" >interface="$2" >service="net.${interface}" > >if [[ ${action} == "up" ]]; then > #Replace metric > eval interface_metric=\"\$\{metric_${interface}\}\" > if [[ -n "${interface_metric}" && ${interface_metric} != 0 ]] ; then > echo ihi ${interface_metric} > ip route | grep " dev ${interface}" | { > while read interface_route ; do > ip route del ${interface_route} > ip route add ${interface_route} metric ${interface_metric} > done > } > fi > #add routes > iproute2_post_start "${interface}" > > #Setup the resolv.conf > [[ ${USEPEERDNS} ]] && eval dns_servers_${interface}=\"$DNS1 $DNS2\" > resolv="${statedir}/${interface}/resolv.conf" > system_dns "${interface}" "${resolv}" > > ! service_stopping "${service}" && mark_service_started "${service}" > > apply_state "${interface}" >else > if service_starting "${service}" || service_started "${service}" ; then > mark_service_inactive "${service}" > fi > > remove_state "${interface}" false >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 112049
:
72560
|
72561
|
72573
|
72605
|
72608
|
72644
|
72645
|
72807
|
72808
|
72809
|
72810
|
72868
|
72885
|
72938
|
72992
|
73062
|
73143