--- create-ppp~ 2010-03-22 23:43:20.000000000 +0300 +++ create-ppp 2012-03-22 19:10:19.000000000 +0400 @@ -61,6 +61,13 @@ case "$PPPTYPE" in PTYOPTION="$PPTP --nolaunchpppd $PPTP_SERVER $PPTP_EXTRA_OPTIONS" ;; pppoe) + [ -n "$HOST" ] || { + print_error "WARNING: HOST is not set for interface $NAME with PPPTYPE $PPPTYPE" + exit 1 + } + PLUGINOPTION="plugin rp-pppoe.so $HOST" + ;; + upppoe) [ -x "${PPPOE:=$DEFAULT_PPPOE}" ] || { print_error "$PPPOE does not exist or is not executable. Try installing rp-pppoe-client RPM." exit 1 @@ -86,7 +93,9 @@ if is_yes "$RESTORE_DEFAULTROUTE"; then fi # Let the show start... -$PPPD $BASIC_PPPOPTIONS $PPPOPTIONS ${PTYOPTION:+local pty "$PTYOPTION"} \ +$PPPD $BASIC_PPPOPTIONS $PPPOPTIONS \ +${PLUGINOPTION:+ $PLUGINOPTION} \ +${PTYOPTION:+local pty "$PTYOPTION"} \ ${PROF_PPPOPTIONSFILE:+ file $PROF_PPPOPTIONSFILE} \ ${PROF_PPPINITCHAT:+ init "$CHAT_CMD $PROF_PPPINITCHAT"} \ ${PROF_PPPCONNECTCHAT:+ connect "$CHAT_CMD $PROF_PPPCONNECTCHAT"} \