#---------------------------------------------------------------------------- # /etc/rc.d/rc340.circuits.pptp.xdsl - configuration of PPTP for xdsl # # Last Update: $Id$ # #---------------------------------------------------------------------------- case $OPT_PPTP in yes) begin_script CIRCUITS_PPTP "starting pptp for xdsl ..." dev='pppoe' debug='' usepeerdns='' reorder_timeout= log_level= active_filter=$(ppp_filter_get) [ -n "$active_filter" ] && active_filter="active-filter \"$active_filter\"" [ "$PPTP_USEPEERDNS" = "yes" ] && usepeerdns='usepeerdns' [ "$PPTP_CLIENT_LOGLEVEL" ] && log_level="--loglevel $PPTP_CLIENT_LOGLEVEL" if [ "$PPTP_DEBUG" = "yes" ] then debug='debug' dhcp_debug=-d > /var/run/dhcp-pptp-debug fi case x$PPTP_CLIENT_REORDER_TO in x) # no timeout specified ;; x0.00) reorder_timeout='--nobuffer' ;; *) reorder_timeout="--timeout $PPTP_CLIENT_REORDER_TO" ;; esac echo "\"$PPTP_USER\" * \"$PPTP_PASS\" *" >> /etc/ppp/pap-secrets do_modprobe ppp_synctty do_modprobe ppp_mppe do_modprobe n_hdlc echo $DIALMODE >/var/run/pppoe.dialmode defaultroute='' # configure pptp interface inode=10.0.0.138 echo "$inode $PPTP_ETH" > /var/run/xdsl-tunnel > /var/run/${PPTP_ETH}_down dhcpcd $dhcp_debug $PPTP_ETH -c /etc/dhcpcd-inode.sh -G while [ -f /var/run/${PPTP_ETH}_down ] do sleep 1 done cat > /etc/ppp/peers/circuit.$dev < /var/run/pppoe.HUP end_script ;; esac