#---------------------------------------------------------------------------- # /etc/rc.d/rc340.circuits.pppoe.new - configuration of PPPoE circuits # # Last Update: $Id$ #---------------------------------------------------------------------------- case $OPT_PPPOE_CIRC in yes) begin_script PPPOE_CIRC "setting up pppoe circuits ..." for idx in `seq 1 $PPPOE_CIRC_N` do eval dev='$PPPOE_CIRC_'$idx'_ETH' eval name='$PPPOE_CIRC_'$idx'_NAME' eval user='$PPPOE_CIRC_'$idx'_USER' eval pass='$PPPOE_CIRC_'$idx'_PASS' eval usepeerdns='$PPPOE_CIRC_'$idx'_USEPEERDNS' eval type='$PPPOE_CIRC_'$idx'_TYPE' eval debug='$PPPOE_CIRC_'$idx'_DEBUG' eval hup_timeout='$PPPOE_CIRC_'$idx'_HUP_TIMEOUT' eval chargeint='$PPPOE_CIRC_'$idx'_CHARGEINT' eval times='$PPPOE_CIRC_'$idx'_TIMES' eval filter='$PPPOE_CIRC_'$idx'_FILTER' pppoe-circuit-ctrl.sh $shell_dbg_opt setup $name $dev $type \ $DIALMODE \ $user "$pass" $hup_timeout $usepeerdns \ $filter $debug # dev=pppoe type=pppoe case $idx in 1) . /etc/rc.d/dsl-circuit-common pppoe-circuit-ctrl.sh start $name ;; *) add_imond_entry ;; esac done end_script ;; esac