瀏覽代碼

pptp: support interface sections without ifname by implementing scan_pptp()

SVN-Revision: 21590
Jo-Philipp Wich 15 年之前
父節點
當前提交
090680f083
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 1 1
      package/pptp/Makefile
  2. 4 0
      package/pptp/files/pptp.sh

+ 1 - 1
package/pptp/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pptp
 PKG_VERSION:=1.7.1
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/pptpclient

+ 4 - 0
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"
 }