diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-04 07:07:58 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-04 07:07:58 +0000 |
commit | 2746a82942eb110bbbcc2bf0c51d6eb501687d87 (patch) | |
tree | 83297f5220a771cda4ac10955deee2fe6de0134e /openwrt/package/pptp/ipkg/etc/init.d/S50pptp | |
parent | 50d17fd6a32e8801450fbdd962ae6ced28123d42 (diff) |
first try to configure pptp automatically
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@796 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/pptp/ipkg/etc/init.d/S50pptp')
-rwxr-xr-x | openwrt/package/pptp/ipkg/etc/init.d/S50pptp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/openwrt/package/pptp/ipkg/etc/init.d/S50pptp b/openwrt/package/pptp/ipkg/etc/init.d/S50pptp new file mode 100755 index 000000000..34ff8a63b --- /dev/null +++ b/openwrt/package/pptp/ipkg/etc/init.d/S50pptp @@ -0,0 +1,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 + + |