summaryrefslogtreecommitdiffstats
path: root/obsolete-buildroot/sources/openwrt/ipkg/pptp-server/root/etc/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'obsolete-buildroot/sources/openwrt/ipkg/pptp-server/root/etc/init.d')
-rw-r--r--obsolete-buildroot/sources/openwrt/ipkg/pptp-server/root/etc/init.d/pptp-server18
1 files changed, 18 insertions, 0 deletions
diff --git a/obsolete-buildroot/sources/openwrt/ipkg/pptp-server/root/etc/init.d/pptp-server b/obsolete-buildroot/sources/openwrt/ipkg/pptp-server/root/etc/init.d/pptp-server
new file mode 100644
index 000000000..3015c66ae
--- /dev/null
+++ b/obsolete-buildroot/sources/openwrt/ipkg/pptp-server/root/etc/init.d/pptp-server
@@ -0,0 +1,18 @@
+#!/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 $?