Lines 23-29
Link Here
|
23 |
# |
23 |
# |
24 |
# Returns 1 if isnd4k-utils is installed, otherwise 0 |
24 |
# Returns 1 if isnd4k-utils is installed, otherwise 0 |
25 |
ipppd_check_installed() { |
25 |
ipppd_check_installed() { |
26 |
( [[ -x /sbin/ipppd ]] || [[ -x /usr/sbin/ipppd ]] ) && return 0 |
26 |
[[ -x /sbin/ipppd ]] && return 0 |
27 |
[[ ${1} == true ]] && eerror "For ISDN (ipppd) support, emerge net-dialup/isdn4k-utils" |
27 |
[[ ${1} == true ]] && eerror "For ISDN (ipppd) support, emerge net-dialup/isdn4k-utils" |
28 |
return 1 |
28 |
return 1 |
29 |
} |
29 |
} |
Lines 42-48
Link Here
|
42 |
# |
42 |
# |
43 |
# Returns 0 (true) when successful, non-zero otherwise |
43 |
# Returns 0 (true) when successful, non-zero otherwise |
44 |
ipppd_pre_start() { |
44 |
ipppd_pre_start() { |
45 |
local iface=${1} opts itype=$( get_type ${1} ) ipppdpath=$( which ipppd) |
45 |
local iface=${1} opts itype=$( get_type ${1} ) |
46 |
|
46 |
|
47 |
# Check that we are a valid isdn interface |
47 |
# Check that we are a valid isdn interface |
48 |
[[ ${itype} != "ippp" && ${itype} != "isdn" ]] && return 0 |
48 |
[[ ${itype} != "ippp" && ${itype} != "isdn" ]] && return 0 |
Lines 54-61
Link Here
|
54 |
eval opts=\"\$\{ipppd_${iface}\}\" |
54 |
eval opts=\"\$\{ipppd_${iface}\}\" |
55 |
|
55 |
|
56 |
einfo "Starting ipppd for ${iface}" |
56 |
einfo "Starting ipppd for ${iface}" |
57 |
|
57 |
/sbin/ipppd ${opts} pidfile /var/run/ipppd-${iface}.pid file /etc/ppp/options.${iface} >${devnull} |
58 |
${ipppdpath} ${opts} pidfile /var/run/ipppd-${iface}.pid file /etc/ppp/options.${iface} >${devnull} |
|
|
59 |
eend $? || return $? |
58 |
eend $? || return $? |
60 |
|
59 |
|
61 |
return 0 |
60 |
return 0 |