Convert matrixssl to new packaging style, install devel. stuff in STAGING_DIR/usr
[openwrt.git] / openwrt / package / pptp / ipkg / etc / init.d / S50pptp
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.049278 seconds and 5 git commands to generate.