pptpd: use boolean options
Use boolean options and fix the relevant init error. Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
This commit is contained in:
parent
298fd20375
commit
706675cbce
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=pptpd
|
PKG_NAME:=pptpd
|
||||||
PKG_VERSION:=1.4.0
|
PKG_VERSION:=1.4.0
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@SF/poptop
|
PKG_SOURCE_URL:=@SF/poptop
|
||||||
|
|
|
@ -18,11 +18,11 @@ validate_login_section() {
|
||||||
|
|
||||||
validate_pptpd_section() {
|
validate_pptpd_section() {
|
||||||
uci_load_validate pptpd service "$1" "$2" \
|
uci_load_validate pptpd service "$1" "$2" \
|
||||||
'enabled:uinteger' \
|
'enabled:bool:1' \
|
||||||
'localip:string' \
|
'localip:string' \
|
||||||
'remoteip:string' \
|
'remoteip:string' \
|
||||||
'mppe:list(string):required no40 no56 stateless' \
|
'mppe:list(string):required no40 no56 stateless' \
|
||||||
'logwtmp:uinteger'
|
'logwtmp:bool:0'
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_login() {
|
setup_login() {
|
||||||
|
|
Loading…
Reference in a new issue