1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-14 20:44:03 +02:00
openwrt-xburst/obsolete-buildroot/sources/openwrt/ipkg/pptp-server/root/etc/init.d/pptp-server
mbm 097635b79b massive changes
- sstrip cleanup from mjn3
- various patches from nico and others: http://openwrt.org/forum/viewtopic.php?t=368


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@145 3c298f89-4303-0410-b956-a3cf2f4a3e73
2004-08-24 23:50:14 +00:00

19 lines
315 B
Bash

#!/bin/sh
case $1 in
start)
insmod ppp_async >/dev/null 2>&1
insmod ppp_mppe_mppc >/dev/null 2>&1
[ -d /var/run ] || mkdir -p /var/run
/usr/sbin/pptpd
;;
stop)
[ -f /var/run/pptpd.pid ] && kill $(cat /var/run/pptpd.pid) >/dev/null 2>&1
;;
*)
echo "usage: $0 (start|stop)"
exit 1
esac
exit $?