summaryrefslogtreecommitdiffstats
path: root/package/pptp/files
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-05-28 00:30:09 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-05-28 00:30:09 +0000
commit76e0410756e8d52f09b2341232a3d658862e3420 (patch)
treeb12fb9fdb862e1ba69db83b645b0d40e20bec198 /package/pptp/files
parentb4aff29b8fe5a71063c358b2b6f38c0e0c6fa83c (diff)
[package] pptp: support interface sections without ifname by implementing scan_pptp()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21590 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pptp/files')
-rw-r--r--package/pptp/files/pptp.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh
index c95895d9f..436bee3c8 100644
--- a/package/pptp/files/pptp.sh
+++ b/package/pptp/files/pptp.sh
@@ -2,6 +2,10 @@ find_gw() {
route -n | awk '$1 == "0.0.0.0" { print $2; exit }'
}
+scan_pptp() {
+ config_set "$1" device "pptp-$1"
+}
+
stop_interface_pptp() {
stop_interface_ppp "$1"
}