summaryrefslogtreecommitdiffstats
path: root/openwrt/package/pptp/ipkg/etc/init.d/S50pptp
blob: 34ff8a63b574b6da382b385e2b6e68ef07f4f498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

. /etc/functions.sh

WAN_PROTO=$(nvram get wan_proto)
[ "$WAN_PROTO" = "pptp" ] || exit 0

for module in ip_gre slhc ppp_generic ppp_async ppp_deflate ; do
   /sbin/insmod $module 2>/dev/null >/dev/null
done
	        
if test -d "/var/lock"; then
  mkdir -p /var/lock || exit 1
fi

/usr/sbin/pppd pty "pptp x.x.x.x --loglevel 0 --nolaunchpppd" file /etc/ppp/options.pptp