Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 72573 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]
[patch]
enables pppd module to use IN_BACKGROUND env var
pppd-inactive.patch (text/plain), 1.53 KB, created by
Roy Marples (RETIRED)
on 2005-11-10 03:21:54 UTC
(
hide
)
Description:
enables pppd module to use IN_BACKGROUND env var
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2005-11-10 03:21:54 UTC
Size:
1.53 KB
patch
obsolete
>--- /lib/rcscripts/net.modules.d/pppd 2005-11-10 11:01:57.000000000 +0000 >+++ pppd 2005-11-10 09:36:44.000000000 +0000 >@@ -101,8 +101,6 @@ > # > # Returns 0 (true) when successful, otherwise 1 > pppd_start() { >- ${IN_BACKGROUND} && return 0 >- > local iface="$1" ifvar=$( bash_variable "$1" ) opts="" link > if [[ ${iface%%[0-9]*} != "ppp" ]]; then > eerror "PPP can only be invoked from net.ppp[0-9]" >@@ -144,8 +142,8 @@ > # Load any commandline options > eval opts=\"\$\{pppd_${ifvar}\[@\]}\" > >- # We don't work with these options set by the user >- for i in unit nodetach linkname maxfail persist ; do >+ # We don't work if unit, no detach or linkname is set. >+ for i in unit nodetach linkname ; do > if [[ " ${opts} " == *" ${i} "* ]]; then > eerror "The option \"${i}\" is not allowed" > return 1 >@@ -230,15 +228,12 @@ > [[ ${insert_link_in_opts} -eq 0 ]] || opts="${link} ${opts}" > > ebegin "Running pppd" >- mark_service_inactive "net.${iface}" > i=$( eval /usr/sbin/pppd ${opts} 2>&1 ) > eend $? "${i}" || return 1 > > if [[ " ${opts} " == *" updetach "* ]]; then > local addr=$( interface_get_address "${iface}" ) > einfo "${iface} received address ${addr}" >- else >- go_background > fi > } > >@@ -249,7 +244,6 @@ > # Returns 0 (true) if no process to kill or it terminates successfully, > # otherwise non-zero (false) > pppd_stop() { >- ${IN_BACKGROUND} && return 0 > local iface="$1" pidfile="/var/run/ppp-$1.pid" > > [[ ! -s ${pidfile} ]] && return 0
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 112049
:
72560
|
72561
|
72573
|
72605
|
72608
|
72644
|
72645
|
72807
|
72808
|
72809
|
72810
|
72868
|
72885
|
72938
|
72992
|
73062
|
73143