diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-06 19:51:27 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-06 19:51:27 +0000 |
commit | dcbb5a19e737d52d7f31f8b48a490676ef90a04d (patch) | |
tree | cb75d50906771e7d9354172176d7fdec7889ef9d /package/pptp/files/pptp.init | |
parent | 6a3cbba92e609da8d161c63b8dd38745ec9a44d7 (diff) | |
download | upstream-dcbb5a19e737d52d7f31f8b48a490676ef90a04d.tar.gz upstream-dcbb5a19e737d52d7f31f8b48a490676ef90a04d.tar.bz2 upstream-dcbb5a19e737d52d7f31f8b48a490676ef90a04d.zip |
pptp: utilize coldplug_interface_pptp() to automatically launch pptp instances on boot
SVN-Revision: 21390
Diffstat (limited to 'package/pptp/files/pptp.init')
-rw-r--r-- | package/pptp/files/pptp.init | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/package/pptp/files/pptp.init b/package/pptp/files/pptp.init deleted file mode 100644 index 024b8ceea2..0000000000 --- a/package/pptp/files/pptp.init +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh /etc/rc.common -# Copyright (C) 2006 OpenWrt.org - -START=41 -STOP=30 - -updown_pptp_interface () { - config_get proto "$1" proto - if [ "$proto" = "pptp" ]; then - if$2 "$1" - fi -} - -boot () { - start -} - -start() { - config_load network - config_foreach updown_pptp_interface interface up -} - -restart() { - config_load network - config_foreach updown_pptp_interface interface down - config_foreach updown_pptp_interface interface up -} - -stop() { - config_load network - config_foreach updown_pptp_interface interface down -} - |