Make modular and fix linking
[openwrt.git] / openwrt / package / pptp / files / pptp.init
1 #!/bin/sh
2
3 . /etc/functions.sh
4
5 WAN_PROTO=$(nvram get wan_proto)
6 [ "$WAN_PROTO" = "pptp" ] || exit 0
7
8 for module in ip_gre slhc ppp_generic ppp_async ppp_deflate ; do
9 /sbin/insmod $module 2>/dev/null >/dev/null
10 done
11
12 if test -d "/var/lock"; then
13 mkdir -p /var/lock || exit 1
14 fi
15
16 /usr/sbin/pppd pty "pptp x.x.x.x --loglevel 0 --nolaunchpppd" file /etc/ppp/options.pptp
17
18
This page took 0.037749 seconds and 5 git commands to generate.