1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-28 08:05:20 +02:00
openwrt-xburst/package/pptp/files/pptp.init
nico 1827dd39e4 Convert pptp to new packaging style
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@941 3c298f89-4303-0410-b956-a3cf2f4a3e73
2005-05-18 23:42:09 +00:00

19 lines
390 B
Bash

#!/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