From b3d7c7b1b57ca64ef52fdc5482504c5270cf8f95 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Thu, 27 Oct 2011 20:28:33 +0000
Subject: netifd: allow ppp based proto handlers to override the
 connect/disconnect script

SVN-Revision: 28630
---
 package/netifd/files/lib/netifd/proto/ppp.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'package/netifd/files/lib')

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 \
-- 
cgit v1.1