Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 48301 Details for
Bug 73067
baselayout net module "ipppd" needs patch to work with isdn4k-utils-3.5_pre20041110
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ipppd module to fix stopping
ipppd (text/plain), 2.37 KB, created by
Roy Marples (RETIRED)
on 2005-01-12 07:40:27 UTC
(
hide
)
Description:
ipppd module to fix stopping
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2005-01-12 07:40:27 UTC
Size:
2.37 KB
patch
obsolete
># ISDN (net-dialup/isdn4k-utils) module for net-scripts ># Version 1.0.2 ># Copyright (c) 2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License V2 ># Contributed by Roy Marples (uberlord@gentoo.org) > ># char* ipppd_provides(void) ># ># Returns a string to change module definition for starting up >ipppd_provides() { > echo "isdn" >} > ># void ipppd_depend(void) ># ># Sets up the dependancies for the module >ipppd_depend() { > after macchanger > before interface >} > ># bool ipppd_check_installed(void) ># ># Returns 1 if isnd4k-utils is installed, otherwise 0 >ipppd_check_installed() { > [[ -x /usr/sbin/ipppd ]] && return 0 > ${1:-false} && eerror "For ISDN (ipppd) support, emerge net-dialup/isdn4k-utils" > return 1 >} > ># bool ipppd_check_depends(void) ># ># Checks to see if we have the needed functions >ipppd_check_depends() { > local f > > for f in interface_exists interface_variable interface_type clean_pidfile; do > [[ $( type -t ${f} ) == function ]] && continue > eerror "ipppd: missing required function ${f}\n" > return 1 > done > > return 0 >} > ># bool ipppd_start(char *iface) ># ># Start isdn on an interface ># ># Returns 0 (true) when successful, non-zero otherwise >ipppd_pre_start() { > local iface=${1} opts itype=$( interface_type ${1} ) > local ifvar=$( interface_variable ${1} ) pidfile="/var/run/ipppd-${iface}.pid" > > # Check that we are a valid isdn interface > [[ ${itype} != "ippp" && ${itype} != "isdn" ]] && return 0 > > # Check that the interface exists > ! interface_exists ${iface} true && return 1 > > if ! clean_pidfile ${pidfile} ; then > ewarn "ipppd is already running on ${iface}" > eend 0 > return 0 > fi > > # Might or might not be set in conf.d/net > eval opts=\"\$\{ipppd_${ifvar}\}\" > > einfo "Starting ipppd for ${iface}" > /usr/sbin/ipppd ${opts} pidfile ${pidfile} file /etc/ppp/options.${iface} >${devnull} > eend $? || return $? > > return 0 >} > ># bool ipppd_stop(char *iface) ># ># Stop isdn on an interface ># Returns 0 (true) when successful, non-zero otherwise >ipppd_stop() { > local iface=${1} pidfile="/var/run/ipppd-${1}.pid" > > ipppd_check_installed || return 0 > [[ ! -f ${pidfile} ]] && return 0 > > clean_pidfile ${pidfile} && return 0 > local pid=$( cat ${pidfile} ) i > > einfo "Stopping ipppd for ${iface}" > kill ${pid} > for (( i=0; i<10; i++ )); do > clean_pidfile ${pidfile} && break > done > [[ ${i} == 10 ]] && kill -s KILL ${pid} > > clean_pidfile ${pidfile} > eend $? || return $? > > 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 Raw
Actions:
View
Attachments on
bug 73067
:
45078
|
48301
|
48386
|
48387