aboutsummaryrefslogtreecommitdiffstats
path: root/package/pptp/files/pptp.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-06 19:51:27 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-06 19:51:27 +0000
commitdcbb5a19e737d52d7f31f8b48a490676ef90a04d (patch)
treecb75d50906771e7d9354172176d7fdec7889ef9d /package/pptp/files/pptp.sh
parent6a3cbba92e609da8d161c63b8dd38745ec9a44d7 (diff)
downloadupstream-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.sh')
-rw-r--r--package/pptp/files/pptp.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh
index ed5f46fff3..5151f72733 100644
--- a/package/pptp/files/pptp.sh
+++ b/package/pptp/files/pptp.sh
@@ -6,10 +6,14 @@ stop_interface_pptp() {
stop_interface_ppp "$1"
}
+coldplug_interface_pptp() {
+ setup_interface_pptp "pptp-$1" "$1"
+}
+
setup_interface_pptp() {
local config="$2"
local ifname
-
+
config_get device "$config" device
config_get ipproto "$config" ipproto
config_get server "$config" server