Add optional route to pptp server.

This commit is contained in:
Arne Fitzenreiter
2011-02-19 20:47:38 +01:00
parent ff7a39506a
commit 164a3b51a9
2 changed files with 14 additions and 0 deletions

View File

@@ -363,6 +363,10 @@ case "${1}" in
fi
fi
ip link set ${PPP_NIC} up
if [ -n "${PPTP_ROUTE}" ]; then
boot_mesg "Set route ${PPTP_ROUTE} to pptp server..."
route add ${PPTP_ROUTE}
fi
else
boot_mesg "Bringing up the PPP via ${TYPE} on ${COMPORT}..."
fi
@@ -551,6 +555,10 @@ case "${1}" in
fi
fi
if [ -n "${PPTP_ROUTE}" ]; then
route del ${PPTP_ROUTE}
fi
if [ "$DEVICE" != "${GREEN_DEV}" ] && [ "$DEVICE" != "" ]; then
link_status=`ip link show $DEVICE.${INET_VLAN} 2> /dev/null`
if [ -n "${link_status}" ]; then