blob: dfc7805dfac030046ca9f23ed41de9b1201b454d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
. "$SUBR_DIR/connections/pppoe"
ppp_compatible() {
if [[ ${#BindsToInterfaces[@]} -ne 1 ]]; then
report_error "No unique port for PPP interface '$Interface' specified"
return 1
fi
if [[ ! $Interface =~ ppp([[:digit:]]+) ]]; then
report_error "Interface '$Interface' is not of the supported form 'ppp<n>'"
return 1
fi
PPPUnit=${BASH_REMATCH[1]}
echo "$BindsToInterfaces"
}
ppp_up() {
local interface
interface=$(ppp_compatible) || return 1
Interface=$interface pppoe_up
}
ppp_down() {
local interface
interface=$(ppp_compatible) || return 1
Interface=$interface pppoe_down
}
|