From patchwork Wed Apr 22 13:26:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksandr Kolesnik X-Patchwork-Id: 463665 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D5FC61400B7 for ; Wed, 22 Apr 2015 23:27:02 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=L6PycX19; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id C45CC280463; Wed, 22 Apr 2015 15:25:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id C63E8280463 for ; Wed, 22 Apr 2015 15:25:24 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 22 Apr 2015 15:25:24 +0200 (CEST) Received: by wgyo15 with SMTP id o15so246896137wgy.2 for ; Wed, 22 Apr 2015 06:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=i89MOgmQsWr83aDKJjW3AEGAtqfI+Ph43WG/JSGCLsk=; b=L6PycX195D4ThJvfqfXGEcUoLGnBfwB3GYLkGX1ZDXJ+mDvxLUxbvxpoemLiTrjdfd XeTjIy6zIG9kkJZbNCwNO9U7UELHqSsMlnQsbYhyr7nDTQgJtf2r2ayIbz/hzYWIJRSP cgv6gIfwRjXHZH2/bQ1TAlxrr6FEKq7nZUfjYhObKnv/5p0SGRFsVD5ZeVwUaWAV7CNV g2XiDyjkolO8hVqe72gLLPw1JXUrugtNOBMFa7vpMud6RcuyIAZlGVYAz6e8/1Pdyv+F NO7TdhIRVmyP5zE0Pcvx3wJd1dgSmFA63QuA1Y30v0Bd8yYgZQqdcu63+dgLRPWvfzX4 r/Rg== MIME-Version: 1.0 X-Received: by 10.180.74.102 with SMTP id s6mr5717923wiv.37.1429709182365; Wed, 22 Apr 2015 06:26:22 -0700 (PDT) Received: by 10.28.86.196 with HTTP; Wed, 22 Apr 2015 06:26:22 -0700 (PDT) Date: Wed, 22 Apr 2015 16:26:22 +0300 Message-ID: From: Aleksandr Kolesnik To: nbd@openwrt.org Cc: OpenWrt Development List Subject: [OpenWrt-Devel] [PATCH v2] ncm: add support to run via proto wwan X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Aleksandr Kolesnik --- package/network/utils/comgt/files/ncm.sh +++ package/network/utils/comgt/files/ncm.sh @@ -27,6 +27,8 @@ proto_ncm_setup() { local device apn auth username password pincode delay mode json_get_vars device apn auth username password pincode delay mode + [ -n "$ctl_device" ] && device=$ctl_device + [ -n "$device" ] || { echo "No control device specified" proto_notify_error "$interface" NO_DEVICE