- if [ "$TYPE" == "pppoe" ]; then
- boot_mesg "Bringing up the PPPoE interface on ${DEVICE}..."
- ip addr add 1.1.1.1/24 broadcast 1.1.1.255 dev ${DEVICE}
+ PPP_NIC=${DEVICE}
+
+ if [ "$TYPE" == "vdsl" ]; then
+ boot_mesg "Createing VLAN Interface ${DEVICE}.7 ..."
+ modprobe 8021q
+ vconfig add ${DEVICE} 7
+ PPP_NIC=${DEVICE}.7
+ sleep 0.2
+ ip link set ${PPP_NIC} up
+ TYPE="pppoe"
+ fi
+
+ if [ "$TYPE" == "pppoeatm" ] || [ "$TYPE" == "pptpatm" ]; then
+ PPP_NIC=nas0
+ boot_mesg "Createing ATM-Bridge as $PPP_NIC ..."
+ br2684ctl -c0 -e${ENCAP} -a0.${VPI}.${VCI} >/dev/null 2>&1 &
+ sleep 1
+ if [ "$TYPE" == "pppoeatm" ]; then
+ TYPE="pppoe"
+ fi
+ if [ "$TYPE" == "pptpatm" ]; then
+ TYPE="pptp"
+ fi
+ fi
+ if [ "$TYPE" == "pppoe" ] || [ "$TYPE" == "pptp" ]; then
+ if [ "$PPP_NIC" == "" ]; then
+ boot_mesg "No device for red interface given. Check netsetup or dialprofile!" ${FAILURE}
+ echo_failure
+ exit 0
+ fi
+ boot_mesg "Bringing up the $TYPE interface on $PPP_NIC ..."
+ ip addr flush dev $PPP_NIC >/dev/null 2>&1
+ if [ "$TYPE" == "pptp" ]; then
+ ip addr add $PPTP_NICCFG dev $PPP_NIC
+ fi
+ ip link set ${PPP_NIC} up