[OpenWrt-Devel,v2] ncm: add support to run via proto wwan
diff mbox

Message ID CAC-0c8c-CRWb+TfysP7zpChY00kDEFNY0YseZK7DfXBEciXY_g@mail.gmail.com
State Accepted
Headers show

Commit Message

Aleksandr Kolesnik July 7, 2015, 7:04 p.m. UTC
Hi,

Is it OK now?

Signed-off-by: Aleksandr Kolesnik <neryba@gmail.com>



2015-07-07 15:03 GMT+03:00 John Crispin <blogic@openwrt.org>:

> Hi,
>
> patch is generated against the wrong root folder. also your mail client
> replaced tabs with spaces. please fix and resend the patch
>
>         John
>
> On 22/04/2015 15:26, Aleksandr Kolesnik wrote:
> > Signed-off-by: Aleksandr Kolesnik <neryba@gmail.com
> > <mailto:neryba@gmail.com>>
> >
> > --- 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
> >
> >
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
> >
>

Patch
diff mbox

--- a/package/network/utils/comgt/files/ncm.sh
+++ b/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