Автостарт pptp туннеля Debian

В

/etc/init.d/

добавляем скрипт

#! /bin/sh
### BEGIN INIT INFO
# Provides:          pptp tunnel
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      1 0 6
# Short-Description: start pptp session
### END INIT INFO
case "$1" in
    start)
        pon <peer_name> &
        echo "PPTP Started"
        ;;
    stop)
        poff <peer_name_
        ip ro del <some_route_del>
        ip ro del <some_route_del>
        echo "PPTP Stopped"
        ;;
    *)
        echo "Usage: /etc/init.d/pptp-<peer_name> {start|stop}"
        exit 1
        ;;
esac
exit 0
insserv -v /etc/init.d/pptp-<peer_name>