aboutsummaryrefslogtreecommitdiffstats
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
commit52cd85e16fbe4be670ad8f5f64e5794c2aa48c3e (patch)
treeac8111772a0428bffe12aed5469ea430bac60228
parent6e801ecad8ab81f7f5fff626aa48d2d8768d9f81 (diff)
downloadupstream-52cd85e16fbe4be670ad8f5f64e5794c2aa48c3e.tar.gz
upstream-52cd85e16fbe4be670ad8f5f64e5794c2aa48c3e.tar.bz2
upstream-52cd85e16fbe4be670ad8f5f64e5794c2aa48c3e.zip
netifd: allow ppp based proto handlers to override the connect/disconnect script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28630 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 d79a897992..4fe80e9f6a 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 \