1#!/sbin/runscript 2 3depend() { 4 need net 5} 6 7start() { 8 ebegin "Starting pptpd" 9 modprobe pptp 10 start-stop-daemon --start --quiet --exec /usr/sbin/pptpd -- ${PPTPD_OPTS} 11 eend $? 12} 13 14stop() { 15 ebegin "Stopping pptpd" 16 start-stop-daemon --stop --quiet --pidfile /var/run/pptpd.pid 17 result=$? 18 start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/pptpctrl 19 result=$(( $result + $? )) 20 eend $result 21} 22