summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-27 20:28:33 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-10-27 20:28:33 +0000
commitb3d7c7b1b57ca64ef52fdc5482504c5270cf8f95 (patch)
treee8a6c12f35cd4071634c424ebfc9d7e9ba7c8f02 /package
parent1138f84e6c2c1be5b066893af0e6f2c68870a0bc (diff)
downloadmtk-20170518-b3d7c7b1b57ca64ef52fdc5482504c5270cf8f95.zip
mtk-20170518-b3d7c7b1b57ca64ef52fdc5482504c5270cf8f95.tar.gz
mtk-20170518-b3d7c7b1b57ca64ef52fdc5482504c5270cf8f95.tar.bz2
netifd: allow ppp based proto handlers to override the connect/disconnect script
SVN-Revision: 28630
Diffstat (limited to 'package')
-rwxr-xr-xpackage/netifd/files/lib/netifd/proto/ppp.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/netifd/files/lib/netifd/proto/ppp.sh b/package/netifd/files/lib/netifd/proto/ppp.sh
index d79a897..4fe80e9 100755
--- a/package/netifd/files/lib/netifd/proto/ppp.sh
+++ b/package/netifd/files/lib/netifd/proto/ppp.sh
@@ -54,8 +54,8 @@ ppp_generic_setup() {
json_get_var username username
json_get_var password password
- json_get_var connect connect
- json_get_var disconnect disconnect
+ [ -n "$connect" ] || json_get_var connect connect
+ [ -n "$disconnect" ] || json_get_var disconnect disconnect
json_get_var pppd_options pppd_options
proto_run_command "$config" /usr/sbin/pppd \