From: nbd Date: Thu, 27 Oct 2011 20:28:33 +0000 (+0000) Subject: netifd: allow ppp based proto handlers to override the connect/disconnect script X-Git-Url: http://git.rohieb.name/openwrt.git/commitdiff_plain/0237747465a69dfe92935d0eb2f9503e0e5ad3cf?ds=sidebyside 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 --- diff --git a/package/netifd/files/lib/netifd/proto/ppp.sh b/package/netifd/files/lib/netifd/proto/ppp.sh index d79a89799..4fe80e9f6 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 \