Compare commits

..

47 Commits
dongle ... stun

Author SHA1 Message Date
Omar Kallel
8859af2b84 Ticket refs #14120: TR-069: Add STUN support 2018-07-17 10:24:04 +01:00
Sukru Senli
2d561d5f4a icwmp-4.0-2018-07-16 2018-07-16 13:08:09 +02:00
Anjan Chanda
78196d9d1e Update feed [ feed_inteno_packages ] package [ wifimngr ]
-------------------------------------------------------------------------------
* 29ac0e0 format neighbor-list to array type
* bd40818 show maxrate and airtime
-------------------------------------------------------------------------------
commit 29ac0e0361e20d21559e0f2f585e5220f048b9e0
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-07-12 16:38:38 +0200

    format neighbor-list to array type

Base directory -> /
 wifimngr_wifi.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit bd40818b2986d6f17881f03e3c6897edf234e482
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-06-05 15:25:16 +0200

    show maxrate and airtime

Base directory -> /
 wifimngr.c | 3 +++
 1 file changed, 3 insertions(+)
-------------------------------------------------------------------------------
2018-07-12 16:42:25 +02:00
Anjan Chanda
b46a240711 Update feed [ feed_inteno_packages ] package [ iop-lla-libs ]
-------------------------------------------------------------------------------
* cf38a61 libdsl: bcm: remove testmode and add start/stop
* 12974eb libethernet: add copyright and license information
* de6f12c libdsl: remove dsl.h
* 83a6d83 libdsl: add copyright and license information
* e448dfd libwifi: add copyright and license information
* 8976f35 libwifi: mtk: support enhanced STA info
* 9d33e28 libethernet: add Makefile
-------------------------------------------------------------------------------
commit cf38a6165251709c0d60b33eafd7f32dcc0675d7
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-06-13 12:35:31 +0200

    libdsl: bcm: remove testmode and add start/stop

    implement start/stop dsl with a desired config. remove testmode code for now
    as it is unused. rename APIs: dsl_enable --> dsl_start
                dsl_disable --> dsl_stop
                dsl_get_info --> dsl_get_status.

Base directory -> /
 libdsl/bcm.c  | 304 ++++++++++++++++++++++++++++++++++++++++++----------------
 libdsl/dsl.c  |  28 ++----
 libdsl/xdsl.h |  48 ++++------
 3 files changed, 248 insertions(+), 132 deletions(-)
-------------------------------------------------------------------------------
commit 12974eb839c6bffb4ebdfdbf19cf4aced03a640c
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-06-12 12:54:40 +0200

    libethernet: add copyright and license information

Base directory -> /
 libethernet/bcm.c      | 21 +++++++++++++++++++++
 libethernet/ethernet.c | 21 +++++++++++++++++++++
 libethernet/ethernet.h | 21 +++++++++++++++++++++
 libethernet/ethsw.c    | 21 +++++++++++++++++++++
 4 files changed, 84 insertions(+)
-------------------------------------------------------------------------------
commit de6f12cec63de6e9137b058e84892fc6ddb7a4f5
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-06-12 12:45:40 +0200

    libdsl: remove dsl.h

Base directory -> /
 libdsl/dsl.h | 175 -----------------------------------------------------------
 1 file changed, 175 deletions(-)
-------------------------------------------------------------------------------
commit 83a6d837e7f76c11358edb38b4efac27bc77bafe
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-06-12 12:43:45 +0200

    libdsl: add copyright and license information

Base directory -> /
 libdsl/bcm.c  | 21 +++++++++++++++++++++
 libdsl/dsl.c  | 21 +++++++++++++++++++++
 libdsl/xdsl.h | 23 +++++++++++++++++++++++
 3 files changed, 65 insertions(+)
-------------------------------------------------------------------------------
commit e448dfd5a379d22dbbdf5abc50eefe80368cef15
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-06-12 12:36:04 +0200

    libwifi: add copyright and license information

Base directory -> /
 libwifi/bcm.c     | 21 +++++++++++++++++++++
 libwifi/chlist.c  | 26 ++++++++++++++++++++++++++
 libwifi/drivers.c | 21 +++++++++++++++++++++
 libwifi/drivers.h | 21 +++++++++++++++++++++
 libwifi/mtk.c     | 21 +++++++++++++++++++++
 libwifi/wifi.c    | 21 +++++++++++++++++++++
 libwifi/wifi.h    | 22 +++++++++++++++++++---
 7 files changed, 150 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit 8976f3557283e4a19ae3fb57e9ad54ff1abca9c8
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-06-05 15:22:17 +0200

    libwifi: mtk: support enhanced STA info

Base directory -> /
 libwifi/mtk.c  | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 libwifi/wifi.h | 25 +++++++++++++++++++-----
 2 files changed, 79 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
commit 9d33e280070808d24d28945f5e38ccd2a303d4af
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-05-31 14:35:11 +0200

    libethernet: add Makefile

Base directory -> /
 libethernet/Makefile | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
-------------------------------------------------------------------------------
2018-07-12 16:41:49 +02:00
Ronny Nilsson
dfb4e5ba86 Erase unpopulated Dect lines from UCI to prevent them
from showing up in the web GUI.
refs #14641
2018-07-11 16:25:59 +02:00
Ronny Nilsson
d9936eb807 Voice: Bugfix in the special case handling of possibly unpopulated Dect HW. 2018-07-11 11:07:32 +02:00
Ronny Nilsson
59e7e0e273 Voice: simulated busy lines if Dect is missing.
If Dect has been disabled in run time we simulate
it as always being busy by going offhook forever.
2018-07-10 17:27:30 +02:00
Ronny Nilsson
8349283fcc Special case handling of possibly unpopulated Dect HW.
Asterisk always needs the raw true kernel values. Everybody
else should satisfy with faked zero number of Dect lines.
This is due to the kernel and libvoip always reports the
same number of lines, no matter if Dect is populated or not.
2018-07-05 16:59:18 +02:00
Reidar Cederqvist
a09e05f356 tptest: change port of referens.sth.ip-performance.se to 1641 refs #15422 2018-07-05 12:01:45 +02:00
Ronny Nilsson
8f5315532b Only start dect daemon if the board has had dect populated by factory. 2018-07-03 15:55:40 +02:00
Reidar Cederqvist
aab1311df9 Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* cb4e05c ipping_launch: round result values to be unsigned ints refs #15385 refs #14153
-------------------------------------------------------------------------------
commit cb4e05c74369b1eddc93f55a3c59ff3337b04af7
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2018-06-28 14:30:27 +0200

    ipping_launch: round result values to be unsigned ints refs #15385 refs
    #14153

Base directory -> /
 scripts/functions/ipping_launch | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2018-06-28 15:16:04 +02:00
Reidar Cederqvist
205c3e04ff icwmp: fix hotplug iface script to check for netmode-conf pid file refs #15348 2018-06-28 11:52:45 +02:00
Reidar Cederqvist
f5c49c8a6e inteno-netmodes: change touching done_file to having a .pid file refs #15348 2018-06-28 11:52:45 +02:00
Benjamin Larsson
b6bb626f2b script: add annexconfig script for selection of dsl annex 2018-06-26 10:26:19 +02:00
Sukru Senli
c574df203d icwmp: configurable vendor prefix support 2018-06-21 14:50:23 +02:00
Omar Kallel
697f71b9a9 Ticket refs #15314: TR-069: make the introduction of vendor specific parameter prefix configurable 2018-06-21 11:14:14 +01:00
Sukru Senli
dec6ee1fcb icwmp-4.0-2018-06-21 2018-06-21 10:34:08 +02:00
Sukru Senli
bf7b0f322a icwmp-4.0-2018-06-18 2018-06-18 15:46:16 +02:00
Ke Hu
eba462998f eg200 support 2018-06-18 10:24:29 +02:00
Benjamin Larsson
a6ac6ad76d watchdog: fix running on new 4.1 kernel 2018-06-15 15:48:13 +02:00
Sukru Senli
082a0160a2 imonitor: default rule is non matching 2018-06-15 14:04:40 +02:00
Sukru Senli
cb965fd0a3 icwmp-4.0-2018-06-14 2018-06-15 14:03:20 +02:00
Sukru Senli
d9ed6113f3 imonitor: by default have no rules 2018-06-15 12:01:11 +02:00
Reidar Cederqvist
b517470c4a inteno-netmodes: use arping instead of ping to verify connection to master refs #15159 2018-06-14 15:18:51 +02:00
Sukru Senli
6b73d03a3c icwmp-4.0-2018-06-13: CPU and memory status via TR069 2018-06-14 14:50:03 +02:00
Ionuț-Alex Oprea
4c491044b6 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 3f6f5e5 Merge branch 'processes' into devel refs #14911
* 577c1cc remove unused variables
* 4671b7e fix variable types
* 8197d37 proper error check for asprintf and fscanf
* da1eac1 remove unused variable fstat
* 113c20c use a single place for adding the values to the blobmsg
* b8816fe fix coding style according to checkpatch.pl
* 7ffd38e Add priority and cputime to ubus router.system processes
-------------------------------------------------------------------------------
commit 3f6f5e56ebd11862c0255a05e733f7fe08e1ceb0
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-13 16:18:51 +0200

    Merge branch 'processes' into devel refs #14911

Base directory -> /
 system.c | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 577c1cc78d3eeb062b4374e5b9837e34b1c0cfcd
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-13 16:11:38 +0200

    remove unused variables

Base directory -> /
 system.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 4671b7e0fefc30040163e24dc93ef7431fc4fc11
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-13 16:01:56 +0200

    fix variable types

Base directory -> /
 system.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit 8197d375cf4fc6fc16aaf0b098acfbfe2847f550
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-13 14:57:22 +0200

    proper error check for asprintf and fscanf

Base directory -> /
 system.c | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit da1eac1b23f7837c9d9ac7b0afe0feb7ec583bdb
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-13 14:42:46 +0200

    remove unused variable fstat

Base directory -> /
 system.c | 1 -
 1 file changed, 1 deletion(-)
-------------------------------------------------------------------------------
commit 113c20cba53c9272538e4d883ce759b0e0a01c2e
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-13 14:41:12 +0200

    use a single place for adding the values to the blobmsg

Base directory -> /
 system.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit b8816fee3bf0f0ed2db3fd5147049345887b8e01
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-13 14:27:03 +0200

    fix coding style according to checkpatch.pl

Base directory -> /
 system.c | 26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)
-------------------------------------------------------------------------------
commit 7ffd38eec42ece3e8f4c86105930e304f5ed7f72
Author: Omar Kallel <omar.kallel@pivasoftware.com>
Date: 2018-06-13 12:02:32 +0100

    Add priority and cputime to ubus router.system processes

Base directory -> /
 system.c | 33 +++++++++++++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2018-06-13 16:25:22 +02:00
Sukru Senli
8febdc5117 owsd: fix the copyright header in the Makefile 2018-06-13 13:30:33 +02:00
Reidar Cederqvist
e379b9bbf6 inteno-netmodes: trigger a reload of icwmp hotplug iface script 2018-06-12 10:59:03 +02:00
Reidar Cederqvist
57bab15116 icwmp & inteno-netmodes: dont reload icwmp if netmode-conf is running 2018-06-12 10:59:03 +02:00
Reidar Cederqvist
336285d438 icwmp: fix hotplug iface script (check device and restart) 2018-06-12 10:59:03 +02:00
Sukru Senli
951d37b3ff icwmp-4.0-2018-06-11 2018-06-12 10:19:53 +02:00
Sukru Senli
69137bfded iup: set option 43 url to cwmp config refs #15261 2018-06-12 10:17:34 +02:00
Kent Ekholm
05b545c2c5 Update feed [ feed_inteno_packages ] package [ endptmngr ]
-------------------------------------------------------------------------------
* a58b69a Added handling of congestion dial tone.
-------------------------------------------------------------------------------
commit a58b69aea2b51e0da0b9f74f692dbe53121ac800
Author: Kent Ekholm <Kent.Ekholm@evidente.se>
Date: 2018-06-11 19:52:20 +0200

    Added handling of congestion dial tone.

    Ref: #14703

Base directory -> /
 src/line.c | 9 +++++++--
 src/ubus.c | 2 ++
 2 files changed, 9 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2018-06-11 20:23:22 +02:00
Benjamin Larsson
62b39e68a4 add eg200 to genconfig 2018-06-11 08:59:07 +02:00
Sukru Senli
1a38055019 iop: select openssl as default curl ssl library instead of mbedtls 2018-06-08 11:48:41 +02:00
Sukru Senli
8ca2803e92 Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* df6a21b Ticket refs #14844: Software Development
-------------------------------------------------------------------------------
commit df6a21b52429d7c2c0455b9415b886cb86b4328d
Author: Omar Kallel <omar.kallel@pivasoftware.com>
Date: 2018-06-07 13:44:57 +0100

    Ticket refs #14844: Software Development

Base directory -> /
 dm/dmtree/tr098/landevice.c        |  18 +++--
 dm/dmtree/tr098/layer_2_bridging.c |  74 +++++++-----------
 dm/dmtree/tr098/wandevice.c        | 149 +++++++++++--------------------------
 dm/dmtree/tr181/bridging.c         | 132 +++++++++++++-------------------
 dm/dmtree/tr181/ethernet.c         |   5 +-
 5 files changed, 135 insertions(+), 243 deletions(-)
-------------------------------------------------------------------------------
2018-06-07 15:50:04 +02:00
Ionuț-Alex Oprea
86dd2c0994 owsd config: add ubusx_acl example 2018-06-07 14:23:00 +02:00
Ronny Nilsson
167dfe751c Voice: removed obsolete config option. 2018-06-07 11:35:52 +02:00
Ronny Nilsson
b3e142ee35 Dect: describing comment for config. 2018-06-07 11:31:54 +02:00
Sukru Senli
eec691dbeb Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* c8a9e8f Ticket refs #15238: Fixing some issues in XMPP object
* 69777aa Ticket refs #15148: icwmp http issue introduced by curl >=7.54.0
-------------------------------------------------------------------------------
commit c8a9e8fac9c473e36bd7b0f567fafc2cd6b74d75
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-06-05 21:12:58 +0100

    Ticket refs #15238: Fixing some issues in XMPP object

Base directory -> /
 config.c                | 12 +++++++-----
 config/cwmp             |  4 ++++
 dm/dmtree/common/xmpp.c | 33 +++++++++++++++++++++++++++------
 3 files changed, 38 insertions(+), 11 deletions(-)
-------------------------------------------------------------------------------
commit 69777aae9b30aaa3b4e0ca761d752686681da5e3
Author: Omar Kallel <omar.kallel@pivasoftware.com>
Date: 2018-06-05 15:38:10 +0100

    Ticket refs #15148: icwmp http issue introduced by curl >=7.54.0

Base directory -> /
 http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2018-06-07 10:57:21 +02:00
Ronny Nilsson
7483d42f14 Update feed [ feed_inteno_packages ] package [ dectmngr2 ]
-------------------------------------------------------------------------------
* 3f5c494 Indentation cleanup
* 7f4db9b Optimaly we could query the kernel for line numbers and corresponding timeslots. But Broadcom provide not support for it and thus we need to hardwaire it.
-------------------------------------------------------------------------------
commit 3f5c49418e7ac1e190c33853617abc66d155ed28
Author: Ronny Nilsson <ronny.nilsson@inteno.se>
Date: 2018-05-29 16:28:33 +0200

    Indentation cleanup

Base directory -> /
 src/ubus.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit 7f4db9b15521e20ab5f57b77fd875d27d2409151
Author: Ronny Nilsson <ronny.nilsson@inteno.se>
Date: 2018-05-29 16:28:06 +0200

    Optimaly we could query the kernel for line numbers and corresponding
    timeslots. But Broadcom provide not support for it and thus we need to
    hardwaire it.

Base directory -> /
 src/external_call.c | 5 +++++
 1 file changed, 5 insertions(+)
-------------------------------------------------------------------------------
2018-06-06 12:28:28 +02:00
Ronny Nilsson
79efb93c70 Voice: starting two calls simultaneously gave an error message. 2018-06-05 16:46:30 +02:00
Ionuț-Alex Oprea
1d78413c74 Update feed [ feed_inteno_packages ] package [ owsd ]
-------------------------------------------------------------------------------
*   f0147e7 Merge branch 'ubusx_acl' into devel
|\
| * d13aeee fix checkpatch.pl warnings and errors
| * 6eac202 replace avl_strcmp with ubus_object_path_compare: proper comparison for object that end with *
| * d092c9e replace printf with lwsl_notice
| * ce1b001 fix compile warnings: type cast
| * a58a5de implement ubusx_acl__add_object to the avl tree
| * b45d846 ubusx_acl: if option is not used, allow all objects bu default
| * 6a4240c add include ubusx_acl.h in main.c
| * 18450f3 add ubusx_acl__add_objects method
| * 60158a8 add the -X option: ubusx acl
| * 2d98397 add the avl tree to keep the object names
| * c3afdb3 add ubusx_acl to makefile
| * 292b619 initial add ubusx_acl files
| * 7f7752e call the ubusx_acl methods
|/
* aed9de1 Create new vhost on -i if iface already defined
-------------------------------------------------------------------------------
commit f0147e754b1018ef51b96ec21f40b921a30e6a6e
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 16:15:32 +0200

    Merge branch 'ubusx_acl' into devel

Base directory -> /
 CMakeLists.txt      |   1 +
 src/main.c          |  11 ++++
 src/rpc_list_ubus.h |   6 ++
 src/ubusx_acl.c     | 159 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/ubusx_acl.h     |  36 ++++++++++++
 5 files changed, 213 insertions(+)
-------------------------------------------------------------------------------
commit d13aeee31979200f801e203dda58c0c7624ede9e
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 16:13:17 +0200

    fix checkpatch.pl warnings and errors

Base directory -> /
 src/main.c          |  2 +-
 src/rpc_list_ubus.h |  5 +++--
 src/ubusx_acl.c     | 25 +++++++++++++------------
 src/ubusx_acl.h     |  4 ++--
 4 files changed, 19 insertions(+), 17 deletions(-)
-------------------------------------------------------------------------------
commit 6eac202a77a9f3d2288e37ad82624075507c03cf
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 15:59:40 +0200

    replace avl_strcmp with ubus_object_path_compare: proper comparison for
    object that end with *

Base directory -> /
 src/ubusx_acl.c | 33 +++++++++++++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit d092c9e1832c5c225adc708f027811319a06486a
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 15:27:58 +0200

    replace printf with lwsl_notice

Base directory -> /
 src/ubusx_acl.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit ce1b00135b25d8020813830df52c70aff674944a
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 13:54:53 +0200

    fix compile warnings: type cast

Base directory -> /
 src/ubusx_acl.c | 6 +++---
 src/ubusx_acl.h | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit a58a5de270f1cf360f894fad875cba359ebe3fa3
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 13:49:43 +0200

    implement ubusx_acl__add_object to the avl tree

Base directory -> /
 src/ubusx_acl.c | 28 ++++++++++++++++++++++++----
 src/ubusx_acl.h |  2 +-
 2 files changed, 25 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit b45d84696d8a77ede69c0176fa12c02b2fbf0890
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 12:00:44 +0200

    ubusx_acl: if option is not used, allow all objects bu default

Base directory -> /
 src/ubusx_acl.c | 4 ++++
 1 file changed, 4 insertions(+)
-------------------------------------------------------------------------------
commit 6a4240c5c9b9eb74ac0c2b864db1ffbd01b7d0b1
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 11:35:41 +0200

    add include ubusx_acl.h in main.c

Base directory -> /
 src/main.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
commit 18450f3548a8b9f71c597ab73b544bfa144a552c
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 11:31:13 +0200

    add ubusx_acl__add_objects method

Base directory -> /
 src/main.c      |  1 +
 src/ubusx_acl.c | 18 ++++++++++++++++++
 src/ubusx_acl.h |  1 +
 3 files changed, 20 insertions(+)
-------------------------------------------------------------------------------
commit 60158a8c5a14a0dc18eb94d55584cbf174f57b5f
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-05 10:26:23 +0200

    add the -X option: ubusx acl

Base directory -> /
 src/main.c | 9 +++++++++
 1 file changed, 9 insertions(+)
-------------------------------------------------------------------------------
commit 2d98397f786954935946ceec29550e29a6e6e445
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-06-04 15:15:36 +0200

    add the avl tree to keep the object names

Base directory -> /
 src/ubusx_acl.c | 36 +++++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit c3afdb3a6f5df1c7b8f23eafa7e86455a71851c5
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-05-30 16:57:42 +0200

    add ubusx_acl to makefile

Base directory -> /
 CMakeLists.txt  | 1 +
 src/ubusx_acl.c | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 292b61900a1e6b73d1fb6b205f627b69fb5c1b93
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-05-30 16:32:30 +0200

    initial add ubusx_acl files

Base directory -> /
 src/ubusx_acl.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/ubusx_acl.h | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)
-------------------------------------------------------------------------------
commit 7f7752eba0f65ac53cbdacf44c416a989e768f7d
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-05-30 16:30:54 +0200

    call the ubusx_acl methods

Base directory -> /
 src/rpc_list_ubus.h | 5 +++++
 1 file changed, 5 insertions(+)
-------------------------------------------------------------------------------
commit aed9de16f49d94bd5abf10a3038fd9a1712cec19
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-02-27 11:27:44 +0100

    Create new vhost on -i if iface already defined

    New lws virtual host will now be created if option -i is specified multiple
    times on the same port(vhost). New vhost will have the same port and label
    as previous vhost.

    Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>

Base directory -> /
 src/main.c | 75 +++++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 52 insertions(+), 23 deletions(-)
-------------------------------------------------------------------------------
2018-06-05 16:26:26 +02:00
Ionuț-Alex Oprea
a9754642bd add "list ubusx_acl" option 2018-06-05 16:19:18 +02:00
Sukru Senli
c75d29f5e3 Update feed [ feed_inteno_packages ] package [ imonitor ]
-------------------------------------------------------------------------------
* 532f490 Fix nr_tests option to work correctly
-------------------------------------------------------------------------------
commit 532f4900862bcb45d8cd4bf37555fabda81750b6
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-06-04 10:13:44 +0200

    Fix nr_tests option to work correctly

    Adjust tests to work with the new nr_tests logic. Run format-check.

    Signed-off-by: Matija Amidzic <matija.amidzic@sartura.hr>

Base directory -> /
 src/monitor.c                           | 102 +++++++++++++++-----------------
 src/uci_parser.c                        |   2 +-
 test/control.c                          |   4 +-
 test/data/uci_file_valid_execute_script |   2 +-
 test/monitor.c                          |  11 ++--
 5 files changed, 58 insertions(+), 63 deletions(-)
-------------------------------------------------------------------------------
2018-06-05 15:55:24 +02:00
Sukru Senli
ae9188df9b icwmp-4.0-2018-06-05 2018-06-05 13:56:48 +02:00
Anjan Chanda
79ff914720 Update feed [ feed_inteno_packages ] package [ wifimngr ]
-------------------------------------------------------------------------------
* a9b2632 add more 'wifi' methods
-------------------------------------------------------------------------------
commit a9b2632692e3a366947cf76a64cafa191e2461a3
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-05-29 15:30:39 +0200

    add more 'wifi' methods

     radios (wifi radio information)
    status (wifi interface status)
    stas (detailed STA info)
    assoclist (association list)
    autochannel (trigger autochannel selection)

Base directory -> /
 wifimngr.c | 503 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 491 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
2018-05-29 15:41:33 +02:00
40 changed files with 221 additions and 189 deletions

View File

@@ -11,7 +11,7 @@ PKG_RELEASE:=1
PKG_VERSION:=1.2.0
PKG_SOURCE_URL:=http://public.inteno.se:/dectmngr2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=cbe2bd27df151be073cf88e8550bbb39c6cd29d8
PKG_SOURCE_VERSION:=dafaf749e89d1efaa7eb02709a3c0ef3e813c052
PKG_NAME:=dectmngr2

View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_RELEASE:=1
PKG_VERSION:=0.2
PKG_SOURCE_VERSION:=dec85d5beabcb0d01f5a5583e3940c9dc922ea03
PKG_SOURCE_VERSION:=0cb8accbac3355b97a17064ec7da010a2c42db7b
ifeq ($(CONFIG_ENDPT_OPEN),y)

4
icwmp/Config_cwmp.in Executable file → Normal file
View File

@@ -27,5 +27,9 @@ config CWMP_DEVEL_DEBUG
bool "Compile with development debug options"
default n
config LIBDATAMODEL_VENDOR_PREFIX
string "Vendor Prefix"
default "X_Inteno_SE_"
endif

0
icwmp/Config_datamodel.in Executable file → Normal file
View File

24
icwmp/Makefile Executable file → Normal file
View File

@@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=icwmp
PKG_VERSION:=4.0-2018-05-23
PKG_VERSION:=4.0-2018-07-16
PKG_FIXUP:=autoreconf
PKG_SOURCE_URL:=http://public.inteno.se:/icwmp.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=3320a6234403802647df9d8df485cd8a2754dac0
PKG_SOURCE_VERSION:=d22821b251277584cfbcce98a98a4261813418ce
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
@@ -22,7 +22,7 @@ PKG_CONFIG_DEPENDS:= \
CONFIG_CWMP_ACS_MULTI \
CONFIG_CWMP_ACS_HDM \
CONFIG_CWMP_DEBUG \
CONFIG_CWMP_DEVEL_DEBUG
CONFIG_CWMP_DEVEL_DEBUG
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
@@ -37,6 +37,12 @@ define Package/libdatamodel
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c
endef
define Package/icwmp_stun
SECTION:=utils
CATEGORY:=Utilities
TITLE:=TR-069 stun Client
DEPENDS:=+libubus +libuci +libubox +libjson-c +libopenssl +libblobmsg-json
endef
define Package/icwmp/Default
SECTION:=utils
@@ -82,6 +88,8 @@ ifeq ($(CONFIG_TARGET_iopsys_ramips),y)
TARGET_CFLAGS += -DEX400
endif
TARGET_CFLAGS += -DCUSTOM_PREFIX=\\\"$(CONFIG_LIBDATAMODEL_VENDOR_PREFIX)\\\"
TARGET_CFLAGS += \
-D_GNU_SOURCE -D_AADJ
@@ -170,6 +178,15 @@ endif
$(CP) ./files/* $(1)/
endef
define Package/icwmp_stun/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/icwmp_stund $(1)/usr/sbin/icwmp_stund
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/init/icwmp_stund $(1)/etc/init.d/icwmp_stund
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/icwmp_stun $(1)/etc/config
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/include/libdatamodel
@@ -203,4 +220,5 @@ endef
$(eval $(call BuildPackage,icwmp-curl))
$(eval $(call BuildPackage,libdatamodel))
$(eval $(call BuildPackage,icwmp_stun))
$(eval $(call BuildPackage,icwmp-zstream))

View File

@@ -6,7 +6,15 @@
[ -f /etc/config/cwmp ] || exit 0
handle_icwmp_reload() {
handle_icwmp_restart() {
[ -f /tmp/switching_mode ] && exit 0
[ -f /tmp/wificontrol.txt -a -f /tmp/netmode-conf.pid ] && exit 0
[ "$INTERFACE" == "loopback" ] && exit 0
local defwan=$(uci -q get cwmp.cpe.default_wan_interface)
[ -n "$defwan" -a "$(uci -q get network.$defwan)" == "interface" -a "$defwan" != "$INTERFACE" ] && exit 0
local islan="$(uci -q get network.$INTERFACE.is_lan)"
[ "$islan" == "1" ] && exit 0
@@ -48,10 +56,22 @@ handle_icwmp_reload() {
network_get_dnsserver curdnsservers $INTERFACE
[ -n "$curdnsservers" ] && echo $curdnsservers > $dnsserverfile || rm -f $dnsserverfile
[ "$previpaddr" = "$curipaddr" -a "$prevgateway" = "$curgateway" -a "$prevsubnets" = "$cursubnets" -a "$prevdnsservers" = "$curdnsservers" ] && exit 0
local prevdev=""
local curdev=""
local devfile=/tmp/ipv4/$INTERFACE-dev
prevdev=$(cat $devfile 2>/dev/null)
network_get_device curdev $INTERFACE
[ -n "$curdev" ] && echo $curdev > $devfile || rm -f $devfile
[ \
"$prevdev" == "$curdev" -a \
"$previpaddr" = "$curipaddr" -a \
"$prevgateway" = "$curgateway" -a \
"$prevsubnets" = "$cursubnets" -a \
"$prevdnsservers" = "$curdnsservers" \
] && exit 0
/etc/init.d/icwmpd reload &
}
handle_icwmp_reload
handle_icwmp_restart

View File

@@ -12,7 +12,7 @@ PKG_INSTALL:=1
PKG_SOURCE_PROTO=git
PKG_SOURCE_URL:=http://public.inteno.se/imonitor.git
PKG_SOURCE_VERSION:=7ad67946ff8d9701447e720242d42bca7e910a56
PKG_SOURCE_VERSION:=532f4900862bcb45d8cd4bf37555fabda81750b6
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=${PKG_NAME}-${PKG_VERSION}
PKG_MAINTAINER:=Sartura Support for Inteno <support-inteno@sartura.hr>

View File

@@ -1,8 +1,9 @@
config monitor
option app 'test'
option test 'echo test'
option stream 'stdout'
option string_match 'test'
option execute 'echo executing'
option interval '10'
option nr_tests '2'
option app 'test'
option test 'echo test'
option stream 'stdout'
option string_match 'TEST'
option execute 'echo executing test'
option interval '10'
option nr_tests '2'

View File

@@ -8,6 +8,18 @@ state="exit"
TMPPATH="/tmp/netmode_config_backup"
CURMODE=""
SLEEPTIME=300
pid_file=/tmp/netmode-conf.pid
echo "$$" >$pid_file
cleanup(){
rm -rf $pid_file
# we need to trigger a reload of icwmp but ONLY if ip or device has changed
[ -f "/etc/hotplug.d/iface/90-icwmp" ] && INTERFACE=wan ACTION=ifup sh /etc/hotplug.d/iface/90-icwmp
exit
}
trap cleanup SIGHUP SIGINT SIGTERM SIGSTOP
set_wireless_values() {
local iface_num="$1"
@@ -110,7 +122,7 @@ backup() {
file="$1"
from_gui="$2"
[ -f "$file" ] || exit
[ -f "$file" ] || cleanup
# let netmode-handler up to 20 seconds to finish switching mode
wait_for_netmode_handler
@@ -161,14 +173,14 @@ done
[ "$apcliband" == "$band" -o "$band" == "" ] || {
[ "$from_gui" == "true" ] && restore "back"
exit
cleanup
}
repeater_iface_num=$(uci -q show wireless | grep -e ".mode='wet'" -e ".mode='sta'" | sed 's/.*\[\([0-9]\)\].*/\1/')
[ -z "$repeater_iface_num" ] && {
[ "$from_gui" == "true" ] && restore "back"
exit
cleanup
}
json_get_var ssid ssid
@@ -197,7 +209,7 @@ while json_get_var dummy $i; do
a_num=$((a_num+1))
[ -z $iface_num ] && {
[ "$from_gui" == "true" ] && restore "back"
exit
cleanup
}
set_wireless_values "$iface_num" "$ssid" "$key" "$encryption" "$device"
get_device "b" device
@@ -205,7 +217,7 @@ while json_get_var dummy $i; do
b_num=$((b_num+1))
[ -z $iface_num ] && {
[ "$from_gui" == "true" ] && restore "back"
exit
cleanup
}
set_wireless_values "$iface_num" "$ssid" "$key" "$encryption" "$device"
else
@@ -222,7 +234,7 @@ while json_get_var dummy $i; do
esac
[ -z $iface_num ] && {
[ "$from_gui" == "true" ] && restore "back"
exit
cleanup
}
set_wireless_values "$iface_num" "$ssid" "$key" "$encryption" "$device"
fi
@@ -269,7 +281,7 @@ if [ "$from_gui" == "true" ]; then
ping -w1 $ip
if [ $? -eq 0 ]; then
restore
exit
cleanup
else
i=$((i-10))
sleep 9
@@ -278,7 +290,7 @@ if [ "$from_gui" == "true" ]; then
restore "back"
else
if [ "$state" == "exit" ]; then
return
cleanup
fi
ubus call leds set '{"state":"allflash"}'
if [ "$state" == "apply" ]; then
@@ -292,3 +304,5 @@ else
correct_uplink
ubus call leds set '{"state":"normal"}'
fi
cleanup

View File

@@ -49,7 +49,7 @@ ping_uplink()
if [ "$hasmode" == "1" ] && [ "$hasip" == "0" -o "$hasdev" == "0" ]; then
rv=0
elif [ "$hasmode" == "1" ]; then
ping $ipaddr -I $device -W 3 -c 1 -q >/dev/null 2>&1
arping -f -q -c1 -w3 -I $device $ipaddr
[ $? -eq 1 ] && rv=0 || rv=1
else
SLEEP_TIME=5

View File

@@ -8,7 +8,7 @@ PKG_NAME:=iop-lla-libs
PKG_VERSION:=1.0.0
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=1b863569ba4ed64d7fdbc4e05d4abf6597aa257e
PKG_SOURCE_VERSION:=cf38a6165251709c0d60b33eafd7f32dcc0675d7
PKG_SOURCE_URL:=http://public.inteno.se:/iop-lla-libs
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@inteno.se>
@@ -37,6 +37,7 @@ endef
define Package/libethernet
$(call Package/iop-lla-libs)
TITLE:= Ethernet library (libethernet)
DEPENDS:=+TARGET_iopsys_ramips:swconfig
endef
define Package/iop-lla-libs/config
@@ -72,6 +73,10 @@ subdirs := \
$(if $(CONFIG_PACKAGE_libdsl),libdsl) \
$(if $(CONFIG_PACKAGE_libethernet),libethernet)
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-I$(STAGING_DIR)/usr/include/libnl3
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
@@ -80,6 +85,7 @@ MAKE_FLAGS += \
subdirs="$(subdirs)"
define Build/InstallDev/libwifi
echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX $(1)"
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libwifi/wifi.h $(1)/usr/include/
@@ -93,6 +99,14 @@ define Build/InstallDev/libdsl
$(CP) $(PKG_BUILD_DIR)/libdsl/libdsl.so* $(1)/usr/lib/
endef
define Build/InstallDev/libethernet
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libethernet/ethernet.h $(1)/usr/include/
$(CP) $(PKG_BUILD_DIR)/libethernet/libethernet.so $(1)/usr/lib/
endef
define Build/InstallDev
$(foreach dir,$(subdirs),$(call Build/InstallDev/$(dir),$(1),$(2));)
endef

View File

@@ -213,6 +213,8 @@ CONFIG_BUSYBOX_CONFIG_FEATURE_TFTP_PUT=y
# CONFIG_BUSYBOX_CONFIG_NTPD is not set
# CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set
CONFIG_LIBCURL_CRYPTO_AUTH=y
# CONFIG_LIBCURL_MBEDTLS is not set
CONFIG_LIBCURL_OPENSSL=y
CONFIG_OPENVPN_openssl_ENABLE_IPROUTE2=y
# CONFIG_SAMBA3_CONFIG_NO_PRINTING is not set
# CONFIG_SIGNED_PACKAGES is not set

View File

@@ -1,3 +1,4 @@
CONFIG_BCM_ENDPOINT_MODULE=y
# Disable kernel internal Dect. External Dect can still operate.
CONFIG_TARGET_NO_DECT=y

View File

@@ -1,3 +1,4 @@
CONFIG_BCM_ENDPOINT_MODULE=y
# Disable kernel internal Dect. External Dect can still operate.
CONFIG_TARGET_NO_DECT=y

View File

@@ -1,5 +1,7 @@
CONFIG_BCM_I2C=y
CONFIG_BCM_ENDPOINT_MODULE=y
# Disable kernel internal Dect. External Dect can still operate.
CONFIG_TARGET_NO_DECT=y
CONFIG_TARGET_NO_DSL=y

View File

@@ -1,4 +1,6 @@
CONFIG_BCM_ENDPOINT_MODULE=y
# Disable kernel internal Dect. External Dect can still operate.
CONFIG_TARGET_NO_DECT=y
CONFIG_USE_DSL=y
CONFIG_TARGET_DSL_GFAST=y

View File

@@ -1,4 +1,6 @@
CONFIG_BCM_ENDPOINT_MODULE=y
# Disable kernel internal Dect. External Dect can still operate.
CONFIG_TARGET_NO_DECT=y
CONFIG_USE_DSL=y
CONFIG_TARGET_DSL_GFAST=y

View File

@@ -1,3 +1,5 @@
CONFIG_BCM_ENDPOINT_MODULE=y
# Disable kernel internal Dect. External Dect can still operate.
CONFIG_TARGET_NO_DECT=y
CONFIG_TARGET_NO_DSL=y

View File

@@ -1,4 +1,3 @@
CONFIG_TARGET_NO_DSL=y
CONFIG_BCM_I2C=y
CONFIG_BCM_ENDPOINT_MODULE=y

View File

@@ -1,4 +1,3 @@
CONFIG_BCM_I2C=y
CONFIG_TARGET_NO_DECT=y
CONFIG_BCM_ENDPOINT_MODULE=y

View File

@@ -1,3 +1,2 @@
CONFIG_BCM_I2C=y
CONFIG_BCM_ENDPOINT_MODULE=y

View File

@@ -0,0 +1,5 @@
CONFIG_BCM_I2C=y
CONFIG_TARGET_NO_DECT=y
CONFIG_TARGET_NO_DSL=y
CONFIG_BCM_ENDPOINT_MODULE=y

View File

@@ -1,4 +1,3 @@
CONFIG_TARGET_NO_DSL=y
CONFIG_BCM_I2C=y
CONFIG_BCM_ENDPOINT_MODULE=y

View File

@@ -1,5 +1,4 @@
CONFIG_TARGET_NO_DHD=y
CONFIG_TARGET_NO_VOICE=y
CONFIG_BCM_I2C=y
CONFIG_BCM_ENDPOINT_MODULE=y

72
iop/scripts/annexconfig.sh Executable file
View File

@@ -0,0 +1,72 @@
#!/bin/bash
function disable_add_config () {
local COPTION="$1"
HAVE_OPTION=`grep $COPTION .config | wc -l`
HAVE_OPTION_DISABLED=`grep "# $COPTION" .config | wc -l`
if [ "$HAVE_OPTION" = "1" ]
then
if [ "$HAVE_OPTION_DISABLED" = "0" ]
then
sed -i -e "s,$COPTION=y,# $COPTION is not set,g" .config
fi
else
echo "# $COPTION is not set" >> .config
fi
}
function enable_option () {
local COPTION="$1"
# cat .config| grep DSL
sed -i -e "s,# $COPTION is not set,$COPTION=y,g" .config
# cat .config| grep DSL
}
function annexconfig {
v() {
[ "$VERBOSE" -ge 1 ] && echo "$@"
}
local ANNEX="$1"
disable_add_config CONFIG_TARGET_NO_DSL
disable_add_config CONFIG_TARGET_DSL_ANNEX_A
disable_add_config CONFIG_TARGET_DSL_ANNEX_B
disable_add_config CONFIG_TARGET_DSL_ANNEX_C
disable_add_config CONFIG_TARGET_DSL_SADSL
disable_add_config CONFIG_TARGET_DSL_GFAST
if [ "$ANNEX" = "no" ]
then
echo "No DSL"
enable_option CONFIG_TARGET_NO_DSL
elif [ "$ANNEX" = "a" ]
then
echo "Annex A"
enable_option CONFIG_TARGET_DSL_ANNEX_A
elif [ "$ANNEX" = "b" ]
then
echo "Annex B"
enable_option CONFIG_TARGET_DSL_ANNEX_B
elif [ "$ANNEX" = "c" ]
then
echo "Annex C"
enable_option CONFIG_TARGET_DSL_ANNEX_C
elif [ "$ANNEX" = "sadsl" ]
then
echo "sadsl"
enable_option CONFIG_TARGET_DSL_SADSL
elif [ "$ANNEX" = "gfast" ]
then
echo "G.fast"
enable_option CONFIG_TARGET_DSL_GFAST
else
echo "Only option no,a,b,c,sadsl,gfast supported"
fi
}
register_command "annexconfig" "Select configuration annex"

View File

@@ -14,7 +14,7 @@ function genconfig {
export DEVELOPER=0
LOCAL_MIRROR="http://mirror.inteno.se/mirror"
iopsys_brcm63xx_mips="cg300 cg301 dg150 dg150v2 dg150alv2 dg200 dg200al dg301 dg301al eg300 vg50 vox25 hpc_hu02"
iopsys_brcm63xx_mips="cg300 cg301 dg150 dg150v2 dg150alv2 dg200 dg200al dg301 dg301al eg300 vg50 vox25 hpc_hu02 eg200"
iopsys_brcm63xx_arm="dg400 eg400 sdx810_rg f104w f104 dg400prime dg400primeb 963138REF_P502"
iopsys_ramips="ex400 sdx810_ap"
ramips="mt7621"

View File

@@ -415,6 +415,7 @@ parse_dhcp_options()
v "dhcp option 43 tr69 url $vendorspecinf"
url=${vendorspecinf%%,*}; rest=${vendorspecinf#*,}
provisioningcode=${rest%%,*};
[ -f /etc/config/cwmp ] && uci_set_state cwmp acs dhcp_url "$url"
uci_set_state provisioning iup urlcwmp "$url"
uci_set_state provisioning iup url "$url"
uci_set_state provisioning iup provisioningcode "$provisioningcode"

View File

@@ -5,15 +5,22 @@
#include <unistd.h>
const char *watchdog_file = "/proc/watchdog";
const char *watchdog_file_nvram = "/proc/nvram/watchdog";
const char *init_string = "1 5000000 1 4";
const char *kicker = "OK";
int main(int argc, char **argv)
{
int fd = open(watchdog_file, O_WRONLY);
int ret = 0;
char *wdt_string_prt = watchdog_file;
int fd = open(wdt_string_prt, O_WRONLY);
if (fd < 0) {
perror("Open watchdog file");
exit(1);
wdt_string_prt = watchdog_file_nvram;
fd = open(wdt_string_prt, O_WRONLY);
if (fd < 0) {
perror("Open watchdog file");
exit(1);
}
}
/* init */
@@ -23,14 +30,17 @@ int main(int argc, char **argv)
perror("Error init watchdog");
exit(1);
}
close(fd);
while (1) {
fd = open(wdt_string_prt, O_WRONLY);
sleep(1);
res = write (fd, kicker, strlen(init_string) + 1);
if (res < 0 ){
perror("Error kicking watchdog");
}
close(fd);
}
return 0;
}

View File

@@ -1,77 +0,0 @@
#
# Copyright (C) 2013 Inteno
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=libmobile
PKG_VERSION:=0.1
PKG_SOURCE_VERSION:=62db19a67357473f1f8eb7b36c5c48a0baad55c6
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git@public.inteno.se:mobile-api.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/libmobile
CATEGORY:=Libraries
DEPENDS:=+libubox +ubus +libcurl +libxml2
TITLE:=package for 4g dongle stuff
endef
define Package/mdmngr
CATEGORY:=Utilities
DEPENDS:=+libubox +ubus +libmobile
TITLE:=application package for 4g dongle stuff
endef
#define Package/dongle_nl
# CATEGORY:=Utilities
# TITLE:=Dongle Netlink
# URL:=
# DEPENDS:=+libuci +libubus +libblobmsg-json +libnl-genl
#endef
define Package/libmobile/description
a library to communicate with dongles through HTTP requests
endef
define Package/mdmngr/description
application using libmobile to communicate with a 4g dongle
endef
#define Package/dongle_nl/description
# Dongle application handling netlink messages from kernel and sending them out on ubus.
#endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/ $(1)/usr/lib
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libmobile.h $(1)/usr/include/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libmobile.so $(1)/usr/lib/
endef
define Package/libmobile/install
$(INSTALL_DIR) $(1)/usr/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libmobile.so $(1)/usr/lib/
endef
define Package/mdmngr/install
$(CP) ./files/* $(1)/ # copy from files to final image
$(INSTALL_DIR) $(1)/sbin # make the dir
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mdmngr $(1)/sbin/ # copy binaries to new directory
endef
#define Package/dongle_nl/install
# $(INSTALL_BIN) $(1)/sbin # make the dir
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/dongle_nl $(1)/sbin/
#endef
$(eval $(call BuildPackage,libmobile))
$(eval $(call BuildPackage,mdmngr))
#$(eval $(call BuildPackage,dongle_nl))

View File

@@ -1,2 +0,0 @@
config mdmngr mdmngr
option debug 1

View File

@@ -1,8 +0,0 @@
if echo $DEVICE | grep "eth";then
ubus call dongle refresh
fi
if echo $DEVICE | grep "usb";then
ubus call dongle refresh
fi

View File

@@ -1,17 +0,0 @@
DEV_MOUNTPATH=`echo "$DEVPATH" | cut -d'/' -f 1-7`
JUNK=`echo "$DEVPATH" | cut -d'/' -f 8`
case "$ACTION" in
add)
if [ -z "$JUNK" ];then
#ubus call dongle alert '{"path":"/sys'${DEV_MOUNTPATH}'"}'
ubus call dongle refresh
fi
;;
remove)
ubus call dongle refresh
;;
*)
;;
esac

View File

@@ -1,34 +0,0 @@
#!/bin/sh /etc/rc.common
START=14
STOP=96
USE_PROCD=1
NAME=dongled
start_service() {
procd_open_instance
config_load mdmngr
config_get debug mdmngr debug 0
procd_set_param command "/sbin/mdmngr"
# procd_append_param command --debug "$debug"
if [ "$debug" -gt 0 ]
then
procd_append_param command --debug "$debug"
fi
procd_set_param respawn
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}
service_triggers()
{
procd_add_reload_trigger mdmngr
}
reload_service() {
stop
start
}

View File

@@ -11,7 +11,7 @@ PKG_RELEASE:=1
PKG_VERSION:=0.2
PKG_SOURCE_URL:=http://public.inteno.se/libpicoevent
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=e374bb2e848ab4002d13a02b6375974e155ba37e
PKG_SOURCE_VERSION:=aaf2a9ce72fe4cb84af9ce185728d35dde33d54d
PKG_NAME:=libpicoevent
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)

View File

@@ -1,8 +1,5 @@
#
# Copyright (C) 2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# Copyright (C) 2018 Inteno
#
include $(TOPDIR)/rules.mk
@@ -13,7 +10,7 @@ PKG_RELEASE:=1
PKG_SOURCE_PROTO=git
PKG_SOURCE_URL:=http://public.inteno.se/owsd.git
PKG_SOURCE_VERSION:=fa25ad0b5af3c9a5c16124a9f699dae3be7b68dd
PKG_SOURCE_VERSION:=f0147e754b1018ef51b96ec21f40b921a30e6a6e
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=${PKG_NAME}-${PKG_VERSION}
PKG_MAINTAINER:=Sartura Support for Inteno <support-inteno@sartura.hr>

View File

@@ -52,6 +52,8 @@ config owsd-listen 'lan_8080'
# option ca '/etc/ssl/certs/owsd-ca-for-clients.pem'
# option whitelist_interface_as_origin '1'
# list origin '*'
# list ubusx_acl 'netmode'
# list ubusx_acl 'router.*'
config owsd-listen 'wan'
option port '80'

View File

@@ -156,6 +156,7 @@ validate_owsd_iface() {
'key:file' \
'ca:file' \
'restrict_to_user:list(string)' \
'ubusx_acl:list(string)' \
&&
[ -n "${port}" ]
}
@@ -164,6 +165,7 @@ parse_owsd_iface() {
local port interface whitelist_interface_as_origin whitelist_dhcp_domains ipv6 ipv6only linklocal
local cert key ca
local restrict_to_user
local ubusx_acl
validate_owsd_iface "$1" || {
echo "Validation failed"
@@ -183,6 +185,9 @@ parse_owsd_iface() {
[ -n "${restrict_to_user}" ] && procd_append_param command -u"${restrict_to_user}"
[ -n "$2" ] && procd_append_param command -i"$2"
[ -n "${ubusx_acl}" ] && procd_append_param command -X"${ubusx_acl}"
}
append_whitelists () {

View File

@@ -8,7 +8,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=questd
PKG_VERSION:=3.1.40
PKG_SOURCE_VERSION:=d3a77faeadac7c7094fa084524d08e03c296bb56
PKG_SOURCE_VERSION:=3f6f5e56ebd11862c0255a05e733f7fe08e1ceb0
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=http://public.inteno.se:/questd

View File

@@ -1,5 +1,5 @@
config testserver '1'
option server 'referens.sth.ip-performance.se'
option port '1642'
option port '1641'

View File

@@ -8,7 +8,7 @@ PKG_NAME:=wifimngr
PKG_VERSION:=1.0.0
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=fa0c6298ed8e47ac2979d51e0697e41bcaa3a055
PKG_SOURCE_VERSION:=29ac0e0361e20d21559e0f2f585e5220f048b9e0
PKG_SOURCE_URL:=http://public.inteno.se:/wifimngr
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@inteno.se>