Lines 61-75
case "$PPPTYPE" in
Link Here
|
61 |
PTYOPTION="$PPTP --nolaunchpppd $PPTP_SERVER $PPTP_EXTRA_OPTIONS" |
61 |
PTYOPTION="$PPTP --nolaunchpppd $PPTP_SERVER $PPTP_EXTRA_OPTIONS" |
62 |
;; |
62 |
;; |
63 |
pppoe) |
63 |
pppoe) |
64 |
[ -x "${PPPOE:=$DEFAULT_PPPOE}" ] || { |
|
|
65 |
print_error "$PPPOE does not exist or is not executable. Try installing rp-pppoe-base RPM." |
66 |
exit 1 |
67 |
} |
68 |
[ -n "$HOST" ] || { |
64 |
[ -n "$HOST" ] || { |
69 |
print_error "WARNING: HOST is not set for interface $NAME with PPPTYPE $PPPTYPE" |
65 |
print_error "WARNING: HOST is not set for interface $NAME with PPPTYPE $PPPTYPE" |
70 |
exit 1 |
66 |
exit 1 |
71 |
} |
67 |
} |
72 |
PTYOPTION="$PPPOE -I $HOST -U $PPPOE_EXTRA_OPTIONS" |
68 |
PLUGINOPTION="plugin rp-pppoe.so $HOST" |
73 |
;; |
69 |
;; |
74 |
dialup) |
70 |
dialup) |
75 |
BASIC_PPPOPTIONS="$BASIC_PPPOPTIONS modem" |
71 |
BASIC_PPPOPTIONS="$BASIC_PPPOPTIONS modem" |
Lines 86-92
if is_yes "$RESTORE_DEFAULTROUTE"; then
Link Here
|
86 |
fi |
82 |
fi |
87 |
|
83 |
|
88 |
# Let the show start... |
84 |
# Let the show start... |
89 |
$PPPD $BASIC_PPPOPTIONS $PPPOPTIONS ${PTYOPTION:+local pty "$PTYOPTION"} \ |
85 |
$PPPD $BASIC_PPPOPTIONS $PPPOPTIONS \ |
|
|
86 |
${PLUGINOPTION:+ $PLUGINOPTION} \ |
87 |
${PTYOPTION:+local pty "$PTYOPTION"} \ |
90 |
${PROF_PPPOPTIONSFILE:+ file $PROF_PPPOPTIONSFILE} \ |
88 |
${PROF_PPPOPTIONSFILE:+ file $PROF_PPPOPTIONSFILE} \ |
91 |
${PROF_PPPINITCHAT:+ init "$CHAT_CMD $PROF_PPPINITCHAT"} \ |
89 |
${PROF_PPPINITCHAT:+ init "$CHAT_CMD $PROF_PPPINITCHAT"} \ |
92 |
${PROF_PPPCONNECTCHAT:+ connect "$CHAT_CMD $PROF_PPPCONNECTCHAT"} \ |
90 |
${PROF_PPPCONNECTCHAT:+ connect "$CHAT_CMD $PROF_PPPCONNECTCHAT"} \ |