Compare commits

...

244 Commits
4.1.0 ... 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
Anjan Chanda
82df3da1b0 Update feed [ feed_inteno_packages ] package [ iop-lla-libs ]
-------------------------------------------------------------------------------
* 1b86356 libwifi: add chlist and drvlist files
-------------------------------------------------------------------------------
commit 1b863569ba4ed64d7fdbc4e05d4abf6597aa257e
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-05-28 16:34:47 +0200

    libwifi: add chlist and drvlist files

Base directory -> /
 libwifi/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2018-05-29 09:07:48 +02:00
Anjan Chanda
97ae62b7e6 wifimngr-1.0.0: provides wifi ubus object 2018-05-29 09:04:46 +02:00
Anjan Chanda
fef8f7118a iop-lla-libs: add dependency libopenssl 2018-05-28 17:05:08 +02:00
Ronny Nilsson
95bc6100aa Dect: fix long caller numbers couldn't be displayed. 2018-05-28 16:58:16 +02:00
Ronny Nilsson
8c89627626 Dect: phone call disconnect works too. 2018-05-28 16:56:40 +02:00
Sukru Senli
736e91655f icwmp-4.0-2018-05-23 2018-05-28 16:52:16 +02:00
Ionuț-Alex Oprea
d15520516a Update feed [ feed_inteno_packages ] package [ imonitor ] 2018-05-28 12:47:52 +02:00
Anjan Chanda
55465fd4a6 iop-lla-libs: remove soft linking to non-existent lib version 2018-05-28 11:08:22 +02:00
Anjan Chanda
a1e16a3b2e iop-lla-libs-1.0.0 2018-05-28 10:05:42 +02:00
Ronny Nilsson
d84783f886 Dect: fix name clashing on MIPS. 2018-05-25 15:42:02 +02:00
Ronny Nilsson
33af5c4df3 Dect: endptmngr has got Dect support 2018-05-25 08:10:33 +02:00
Erik Horemans
f06747ebeb new ice-client 5.1.1 2018-05-24 16:37:59 +02:00
Ionuț-Alex Oprea
41565403d4 inteno-netmodes: netmode: change verbose level from debug to warning refs #15087 2018-05-24 15:06:15 +02:00
Reidar Cederqvist
0ddbe68676 iop: remove p910nd from inteno default software 2018-05-24 10:13:54 +02:00
Reidar Cederqvist
bbb3f94335 voice-client: fix security issue refs #14962 2018-05-18 17:11:56 +02:00
Ionuț-Alex Oprea
108e0e3bf5 Update feed [ feed_inteno_packages ] package [ imonitor ]
-------------------------------------------------------------------------------
* 297c594 Interval option now supports decimal number
* e74f168 Implemented string_regex matching option
* 387afe6 Improve monitor tests to be more robust
* 28c2870 Change internal handling of match options
* 844f293 Rearrange #include locations
* e3a5d16 Rename a test config file
* d70af8d Updated Dockerfile to build consistent environment
* 2108f29 allow OpenSSH login without password and set port map
* c66c1fe add sudo when running make test or make test_coverage
* 0b4240a change exec call in README.md
* 7d6adde change Dockerfile exec label
* da47c38 add strace
* 3f7f773 implement string_not_match
* ff92f92 bump to newest CMocka 1.1.1
* 265b43a configure user sudo
* 650549a write 'Development Workflow' chapter
* 2cf5f51 test that a process is running after the execute is called
* 7c356d6 add a note regarding usage of make format with root user
* 807641d add NetBeans IDE project folder to ignore list
* 4f30881 format the code using project code style
* 8140f7b map host user to a container
* 54180ab integrate automatic code style check and correction
* 96e49c5 add missing static keyword
* d2488f2 use system call insted of ubus for execute
* 187d88f Unify whitespaces across files
* 425c16a add OpenSSH server into Dockerfile
-------------------------------------------------------------------------------
commit 297c5945dcbc22a1504307ea658d7b43eb45d295
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-26 16:37:51 +0200

    Interval option now supports decimal number

    Changed the way interval option is parsed. Now there is a guard against
    negative and too large values. Some tests needed to be updated to work with
    this changes. Added parser tests for negative value and decimal value.

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

Base directory -> /
 src/monitor.c                                      |  4 +-
 src/uci_parser.c                                   | 17 ++++--
 test/data/uci_file_invalid_negative_interval_value |  8 +++
 test/data/uci_file_valid_float_interval            |  8 +++
 test/monitor.c                                     | 26 ++++-----
 test/uci_parser.c                                  | 62 ++++++++++++++++++++--
 6 files changed, 103 insertions(+), 22 deletions(-)
-------------------------------------------------------------------------------
commit e74f1684bf8d88aff29a2ecd00fa89529cd8a6d0
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-26 14:46:52 +0200

    Implemented string_regex matching option

    imonitor can now use regular expressions (POSIX ERE flavour) to match the
    pattern to the test output. Corresponding tests and readme updates are also
    included in this commit.

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

Base directory -> /
 README.md                                          |  30 ++--
 src/main.c                                         |   1 +
 src/monitor.c                                      |  25 ++-
 src/uci_parser.c                                   |   2 +-
 ..._file_invalid_both_string_match_and_regex_match |   9 ++
 ...valid_string_match_string_not_match_regex_match |  10 ++
 test/data/uci_file_valid_regex_match               |   8 +
 test/monitor.c                                     | 167 +++++++++++++++++++++
 test/uci_parser.c                                  |  61 ++++++++
 9 files changed, 295 insertions(+), 18 deletions(-)
-------------------------------------------------------------------------------
commit 387afe6b4ae748a7171027f6c95827753c3edeb8
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-23 12:31:24 +0100

    Improve monitor tests to be more robust

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

Base directory -> /
 test/monitor.c | 254 ++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 217 insertions(+), 37 deletions(-)
-------------------------------------------------------------------------------
commit 28c28702cca84fbc10cc8171cdd5dc0af53b113e
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-23 10:19:31 +0100

    Change internal handling of match options

    Reworked how string_match and string_not_match options are handled
    internally. Also added beginning of support for regex matching.

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

Base directory -> /
 src/monitor.c     | 73 +++++++++++++++++++++++--------------------
 src/monitor.h     |  5 +--
 src/uci_parser.c  | 93 +++++++++++++++++++++++++++++++++----------------------
 test/monitor.c    | 27 ++++++++++------
 test/uci_parser.c |  8 ++---
 5 files changed, 121 insertions(+), 85 deletions(-)
-------------------------------------------------------------------------------
commit 844f2937d19636e978d3dda939fb4a11c774013f
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-23 10:16:19 +0100

    Rearrange #include locations

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

Base directory -> /
 src/control.h     | 18 ------------------
 src/monitor.c     |  1 -
 src/monitor.h     | 17 ++++++++++++++++-
 src/uci_parser.c  |  3 ++-
 src/uci_parser.h  |  2 +-
 test/uci_parser.c |  1 +
 6 files changed, 20 insertions(+), 22 deletions(-)
-------------------------------------------------------------------------------
commit e3a5d16ad17c65a02a70e82a08262ca77be6e162
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-23 09:56:45 +0100

    Rename a test config file

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

Base directory -> /
 .../data/uci_file_invalid_both_string_match_and_string_not_match | 9 +++++++++
 test/data/uci_file_valid_both_string_match_and_string_not_match  | 9 ---------
 test/uci_parser.c                                                | 2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit d70af8d33b81be91f92b67af3567cc5dbf1755ba
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-23 09:48:10 +0100

    Updated Dockerfile to build consistent environment

    Now checkouts a specific commit for uci, ubus and rpcd sources

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

Base directory -> /
 Dockerfile | 3 +++
 1 file changed, 3 insertions(+)
-------------------------------------------------------------------------------
commit 2108f29a50bfdf229ea3226634723e53e8e313ee
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-21 20:26:44 +0100

    allow OpenSSH login without password and set port map

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 Dockerfile    | 3 ++-
 README.md     | 2 +-
 entrypoint.sh | 8 ++++++--
 3 files changed, 9 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit c66c1fe81d8726ad22acad0f2b33e1a634d7f834
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-20 17:56:25 +0100

    add sudo when running make test or make test_coverage

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 README.md | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit 0b4240a8a00f759d0661766025b4fea8ad19003b
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-20 13:18:37 +0100

    change exec call in README.md

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 7d6adde6329ff427b112b8124a6436b9de5a4789
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-20 10:55:16 +0100

    change Dockerfile exec label

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit da47c385520eb41c1d948e16689d2b14eda80a26
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-19 14:43:42 +0100

    add strace

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 Dockerfile | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
commit 3f7f773f5bb4eb460fa6329842e84824070f7ca8
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-19 14:25:04 +0100

    implement string_not_match

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 src/control.h                                      |  1 +
 src/monitor.c                                      | 57 ++++++++++++------
 src/uci_parser.c                                   | 42 ++++++++++---
 src/uci_parser.h                                   |  1 +
 ...le_valid_both_string_match_and_string_not_match |  9 +++
 test/data/uci_file_valid_string_not_match          |  8 +++
 test/monitor.c                                     | 68 +++++++++++++++++++++-
 test/uci_parser.c                                  | 46 +++++++++++++++
 8 files changed, 205 insertions(+), 27 deletions(-)
-------------------------------------------------------------------------------
commit ff92f92b984240142b2b1ca917f2559eeeac2124
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-19 10:19:32 +0100

    bump to newest CMocka 1.1.1

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 Dockerfile | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 265b43a7a5c5efe4ad1d24282736af84695cbc8d
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-19 10:04:38 +0100

    configure user sudo

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 Dockerfile    | 1 +
 entrypoint.sh | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 650549a84cc5c0f64dfe3f2b7d2184130be292eb
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-16 14:54:44 +0100

    write 'Development Workflow' chapter

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 README.md | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 2cf5f51f2c8cd2071fbe5f5f20482f10b45ac7f9
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-16 10:01:17 +0100

    test that a process is running after the execute is called

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 test/control.c                           | 70 +++++++++++++++++++++++++++++++-
 test/data/uci_file_valid_execute_command |  8 ++++
 2 files changed, 77 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 7c356d6ed1429d9260d7a8d88619b86d226dda4d
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-16 08:17:46 +0100

    add a note regarding usage of make format with root user

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 README.md | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
commit 807641d76f22c1d3cf3d34838bc3de0a1cd3b09f
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-15 15:41:39 +0100

    add NetBeans IDE project folder to ignore list

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 .gitignore | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
commit 4f308811022e8368d34f0c011ca255729f86783f
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-15 15:40:50 +0100

    format the code using project code style

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 src/debug.h       |  83 ++++++++++++-------
 src/main.c        |   4 +-
 src/monitor.c     |  56 +++++++------
 src/monitor.h     |   4 +-
 src/uci_parser.c  |  22 ++++--
 test/control.c    |  24 +++---
 test/monitor.c    | 168 +++++++++++++++++++++++----------------
 test/uci_parser.c | 233 +++++++++++++++++++++++++++++-------------------------
 8 files changed, 345 insertions(+), 249 deletions(-)
-------------------------------------------------------------------------------
commit 8140f7b753f8e7cc6d495557d19d3ae904135034
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-15 15:18:46 +0100

    map host user to a container

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 Dockerfile    |  9 ++++++---
 README.md     |  2 +-
 entrypoint.sh | 11 +++++++++++
 3 files changed, 18 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 54180ab6fbd84d1fb8ceb3846a9e4b8b5237d46b
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-15 12:02:22 +0100

    integrate automatic code style check and correction

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 .clang-format                       | 89 +++++++++++++++++++++++++++++++++++++
 CMakeLists.txt                      |  4 ++
 Dockerfile                          |  1 +
 README.md                           | 31 +++++++++++++
 cmake/modules/FindClangFormat.cmake | 33 ++++++++++++++
 cmake/modules/clang-format.cmake    | 37 +++++++++++++++
 6 files changed, 195 insertions(+)
-------------------------------------------------------------------------------
commit 96e49c55bae19c588c601877b87049e5a09e44cd
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-13 09:18:54 +0100

    add missing static keyword

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

Base directory -> /
 src/monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit d2488f2d5ebb85b5492895d28b771a61102a4f7e
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-13 09:18:23 +0100

    use system call insted of ubus for execute

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

Base directory -> /
 src/monitor.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 187d88f345258672a1faf54a95415cfb2bca28e9
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-09 16:26:01 +0100

    Unify whitespaces across files

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

Base directory -> /
 src/control.c    |  26 ++--
 src/control.h    |  20 ++--
 src/debug.h      |  40 +++----
 src/main.c       |  62 +++++-----
 src/monitor.c    | 354 +++++++++++++++++++++++++++----------------------------
 src/monitor.h    |   4 +-
 src/uci_parser.c |   6 +-
 src/uci_parser.h |   6 +-
 8 files changed, 259 insertions(+), 259 deletions(-)
-------------------------------------------------------------------------------
commit 425c16a82bd713dd97d9bac76b65ee5f06279dbb
Author: Hrvoje Varga <hrvoje.varga@sartura.hr>
Date: 2018-03-08 13:29:40 +0100

    add OpenSSH server into Dockerfile

    Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>

Base directory -> /
 Dockerfile       | 10 ++++++++++
 supervisord.conf |  3 +++
 2 files changed, 13 insertions(+)
-------------------------------------------------------------------------------
2018-05-16 17:27:45 +02:00
Benjamin Larsson
1f48ceec47 Add " 2018-05-16 17:05:54 +02:00
Benjamin Larsson
485477a368 Generate latest symlink on the server for open consumer packages 2018-05-16 17:04:20 +02:00
Sukru Senli
0a5a30e17c iop: config: select imonitor and rulengd packages 2018-05-14 14:22:40 +02:00
Reidar Cederqvist
28eeb8fd3c inteno-netmodes: libexec script can't run scripts in background fixed by extra-script
by starting a script that starts netmode-conf in the background refs #14901
2018-05-14 10:02:38 +02:00
Erik Horemans
165538cc11 new ice-client 5.0.3-RC9 2018-05-07 17:10:37 +02:00
Ionuț-Alex Oprea
1d882b99aa Update feed [ feed_inteno_packages ] package [ inteno-netmodes ]
-------------------------------------------------------------------------------
* fbd7dcf netmode: config: config_compare_wet: fix band comparison refs #14918 refs #14919 refs #14920
* 81f444e netmode: config: config_compare_wet: log the change for the wet interface
* acf96c5 fix some text in comments
-------------------------------------------------------------------------------
commit fbd7dcfab03df19b3c32675940e0aee708c7cf75
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-05-07 14:17:55 +0200

    netmode: config: config_compare_wet: fix band comparison refs #14918 refs
    #14919 refs #14920

Base directory -> /
 config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 81f444ef9c914d49c2896229e205302d449ecc24
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-05-07 14:16:12 +0200

    netmode: config: config_compare_wet: log the change for the wet interface

Base directory -> /
 config.c | 3 +++
 1 file changed, 3 insertions(+)
-------------------------------------------------------------------------------
commit acf96c5272c763c355cda5f168de091f536b8ac7
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-05-07 14:14:02 +0200

    fix some text in comments

Base directory -> /
 config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2018-05-07 15:24:43 +02:00
Ionuț-Alex Oprea
8bb09e6767 iop: build_branch: add set -+x 2018-05-07 12:57:11 +02:00
Sukru Senli
f80cf53231 icwmp: Unable to discover CPE from ACS fix 2018-05-04 09:32:23 +02:00
Sukru Senli
c271d2fea6 icwmp-4.0-2018-05-02 2018-05-02 15:29:38 +02:00
Kent Ekholm
f2285030f9 Update feed [ feed_inteno_packages ] package [ endptmngr ]
-------------------------------------------------------------------------------
* cdef595 Added country settings for Croatia.
-------------------------------------------------------------------------------
commit cdef59501213d8846843a1c41662255d6bd1562a
Author: Kent Ekholm <Kent.Ekholm@evidente.se>
Date: 2018-04-20 11:06:38 +0200

    Added country settings for Croatia.

    Ref: #14703

Base directory -> /
 src/endpt.c | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
2018-04-26 15:14:33 +02:00
Ionuț-Alex Oprea
072c2dc4ab netmode: add log message for netmode_get_ip_type function 2018-04-25 16:11:44 +02:00
Ionuț-Alex Oprea
6e0521962e hotplug net 80-repeater: improve log messages 2018-04-25 12:12:08 +02:00
Sukru Senli
252f960651 iup: adapt option 132 implementation to new network config 2018-04-25 08:26:27 +02:00
Ionuț-Alex Oprea
271c4a9a7a inteno-netmodes: improve logging messages 2018-04-23 17:00:06 +02:00
Sukru Senli
292fc18311 iop: configs: select busybox arping 2018-04-23 14:45:21 +02:00
Sukru Senli
8efd6f5207 peripheral_manager: ledctl with simplified API 2018-04-23 14:01:35 +02:00
Sukru Senli
be23fd6dc4 icwmp-4.0-2018-04-20 2018-04-20 16:24:42 +02:00
Sukru Senli
a538965656 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* d3a77fa mediatek: use correct file for 5G ApCli interface
-------------------------------------------------------------------------------
commit d3a77faeadac7c7094fa084524d08e03c296bb56
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-04-19 16:52:26 +0200

    mediatek: use correct file for 5G ApCli interface

Base directory -> /
 mediatek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2018-04-19 16:57:28 +02:00
Ionuț-Alex Oprea
62e6e41b86 iop: update_package: fix typos 2018-04-19 12:43:40 +02:00
Ionuț-Alex Oprea
398ebb5025 Update feed [ feed_inteno_packages ] package [ inteno-netmodes ]
-------------------------------------------------------------------------------
* e43701f zero-out the buffer before initializing it
-------------------------------------------------------------------------------
commit e43701f76ba2a8699df797d88fffc3895a3bfeb8
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-04-19 12:29:33 +0200

    zero-out the buffer before initializing it

Base directory -> /
 netmoded.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
2018-04-19 12:40:35 +02:00
Ionuț-Alex Oprea
3b1fd5d4b5 iup: dhcp_option_relay: do not output to console 2018-04-17 16:18:18 +02:00
Ionuț-Alex Oprea
2e769a153c iup: add dhcp_option_relay refs #14666 2018-04-17 16:10:51 +02:00
Kent Ekholm
04e772ce31 Added indications for croatia. 2018-04-17 16:08:18 +02:00
Sukru Senli
2608ceb6f7 inteno-netmodes: testnet: log connection status when changed 2018-04-17 16:08:16 +02:00
Sukru Senli
dae658ecef owsd: do not install uci-default script 2018-04-17 16:08:13 +02:00
Kent Ekholm
445e56309a Added codes for Croatia. 2018-04-17 13:08:27 +02:00
Sukru Senli
b472992872 icwmp: fix SoftwareVersion parameter 2018-04-13 13:28:34 +02:00
Sukru Senli
568e9fb3e3 icwmp-4.0-2018-04-13 2018-04-13 09:20:32 +02:00
Sukru Senli
ad553e8e22 SDX810-RG: select CONFIG_TARGET_NO_DSL #14709 2018-04-12 14:51:06 +02:00
Sukru Senli
93ec60c75c icwmp-4.0-2018-04-09 2018-04-12 11:20:44 +02:00
Kenneth Johansson
91fe77784e iop ssh_sysupgrade: be verbose. 2018-04-10 17:37:43 +02:00
Ke Hu
f52e3a6d43 update uboot inteno version
if we upg uboot, env inteno version should be set
2018-04-09 17:22:17 +02:00
Kenneth Johansson
ad4bdf1cbe u-boot: new version to force update on all boards.
Force the u-boot version to include the actual build time. This is
needed for the "uboot_inteno_version" variable update to work in all
situations.
2018-04-09 16:01:41 +02:00
Erik Horemans
112bcd7856 new ice-client 5.0.3-RC5 2018-04-09 15:11:53 +02:00
Erik Horemans
cdaa3de08e new ice-client 5.0.3-RC2 2018-04-06 17:10:29 +02:00
Sukru Senli
7d9442cbb2 inteno-netmodes: reboot unless reboot is not set to 0 2018-04-05 11:01:05 +02:00
Ionuț-Alex Oprea
c0b299231d iop: build_branch_sysupgrade: do not run sysupgrade if build_branch fails 2018-04-04 17:14:06 +02:00
Sukru Senli
19f6370294 icwmp-4.0-2018-04-04 refs #14555 2018-04-04 11:37:47 +02:00
Sukru Senli
57cc779ebe Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* 488440a icwmpd.init: uci get notification with -q option
-------------------------------------------------------------------------------
commit 488440ac21a91977afcb05043f97ebd3f493db57
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-03-29 09:58:06 +0200

    icwmpd.init: uci get notification with -q option

Base directory -> /
 init/icwmpd.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2018-03-29 09:58:29 +02:00
Sukru Senli
4db612a708 icwmpd: do not send notify for cwmp config change 2018-03-29 09:26:42 +02:00
Sukru Senli
3030e697b4 icwmp-4.0-2018-03-29 2018-03-29 09:11:56 +02:00
Reidar Cederqvist
41d8969cb5 iop: default config: update juci-plugin names to not include inteno ref #14556 2018-03-28 15:56:28 +02:00
Sukru Senli
68a0b57b89 inteno-netmodes: testnet: fix typo 2018-03-27 09:42:27 +02:00
Sukru Senli
dc1b5991ca inteno-netmodes: testnet: direct operstate check error to devnull 2018-03-23 21:48:16 +01:00
Sukru Senli
220d50e5a6 inteno-netmodes: testnet: disable access to wireless only if uplink is wifi wan refs #14531 2018-03-23 21:40:39 +01:00
Sukru Senli
dca064ff86 voice-client: show only the calls with account info in the call log refs #14164 2018-03-21 17:57:59 +01:00
Sukru Senli
1e0ca02fd3 Update feed [ feed_inteno_packages ] package [ rulengd ]
-------------------------------------------------------------------------------
* 99881f3 Removed unnecessary debug message
* f37f28d Fix support for multiple rules on same event
-------------------------------------------------------------------------------
commit 99881f39232154530ac129dc2109d78963017ad1
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-20 16:22:26 +0100

    Removed unnecessary debug message

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

Base directory -> /
 src/ruleng_ubus.c | 1 -
 1 file changed, 1 deletion(-)
-------------------------------------------------------------------------------
commit f37f28decf08926569a99e55f4c54a3822274f0f
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-20 13:47:41 +0100

    Fix support for multiple rules on same event

    Rulengd now executes configured methods for all matched rules

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

Base directory -> /
 src/ruleng_ubus.c | 64 +++++++++++++++++++++++++++++--------------------------
 1 file changed, 34 insertions(+), 30 deletions(-)
-------------------------------------------------------------------------------
2018-03-21 15:27:53 +01:00
Sukru Senli
a415627888 icwmp-4.0-2018-03-21 2018-03-21 09:11:49 +01:00
Ke Hu
b59819d1c7 fix public lib
change from git to http
2018-03-19 10:50:28 +01:00
Sukru Senli
2c8aa1b16e inteno-netmodes: adapt netmodes configs to new vlan and dsl config way 2018-03-19 10:16:16 +01:00
Sukru Senli
ed56e666ec Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 11dd6f3 router.wireless: allow getting assoclist for a specific vif
-------------------------------------------------------------------------------
commit 11dd6f37554f87c767560b3d1d4eba2e2a4ed0ef
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-03-17 10:26:33 +0100

    router.wireless: allow getting assoclist for a specific vif

Base directory -> /
 wireless.c | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2018-03-17 10:28:01 +01:00
Sukru Senli
31972f6962 icwmp: add uci-defaults script to set reqopts 2018-03-16 17:11:03 +01:00
Sukru Senli
9124826b25 iup: add uci-default script to set reqopts 2018-03-16 17:06:58 +01:00
Ronny Nilsson
e9011a695d voice-client: Revert part of 6694e1975b
where I removed a bit to much.
2018-03-16 16:31:02 +01:00
Ronny Nilsson
eb827af331 voice-client: Reduce default set of codecs for SIP
peers. We try to have ALAW only everywhere due to
previously there has been unnecessary transcodings
in several places.
2018-03-16 16:28:21 +01:00
Hrvoje Varga
2adaa3ecf3 imonitor: add package
Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>
2018-03-16 13:42:16 +01:00
Sukru Senli
2ca35674da Update feed [ feed_inteno_packages ] package [ rulengd ]
-------------------------------------------------------------------------------
* 8285c86 Support multiple rules with same event type
* e1f9223 rulengd: update README
-------------------------------------------------------------------------------
commit 8285c86691a9af4d2e4644fffbfc25ff8a09f816
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-03-05 10:40:06 +0100

    Support multiple rules with same event type

    Multiple rules with with same event type will now be matched based on their
    event_data.

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

Base directory -> /
 src/ruleng_ubus.c | 53 +++++++++++++++++++++++++----------------------------
 1 file changed, 25 insertions(+), 28 deletions(-)
-------------------------------------------------------------------------------
commit e1f92234c2f278155888c8dce0348c3672ad0ca3
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-02-22 10:52:55 +0100

    rulengd: update README

Base directory -> /
 README | 61 ++++++++++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 44 insertions(+), 17 deletions(-)
-------------------------------------------------------------------------------
2018-03-16 13:39:55 +01:00
Sukru Senli
76cb04904f Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* 532fe17 Ticket refs #14375: ACS shows "TimedOut Error" on performing "GetParameterValues" on SDX810-AP
-------------------------------------------------------------------------------
commit 532fe1757c09ceb058c8bfb841a935bd0a73c66d
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-15 18:30:22 +0100

    Ticket refs #14375: ACS shows "TimedOut Error" on performing
    "GetParameterValues" on SDX810-AP

Base directory -> /
 dm/dmcommon.c              | 12 +++++---
 dm/dmtree/tr181/bridging.c | 73 ++++++++++++++++++++++++++--------------------
 dm/dmtree/tr181/ethernet.c |  2 ++
 dm/dmtree/tr181/wifi.c     |  7 ++++-
 4 files changed, 58 insertions(+), 36 deletions(-)
-------------------------------------------------------------------------------
2018-03-16 10:07:21 +01:00
Sukru Senli
7ecbecc9a8 icwmp-4.0-2018-03-15: refs #14390 2018-03-15 16:06:57 +01:00
Sukru Senli
9d18af368d Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* a1d2dc9 do not reload network if reqopts are not changed
-------------------------------------------------------------------------------
commit a1d2dc97b0f55a1c028012d12d30447f05ab3baa
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-03-15 15:29:33 +0100

    do not reload network if reqopts are not changed

Base directory -> /
 init/icwmpd.init | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
2018-03-15 15:30:00 +01:00
Sukru Senli
2cfea5f582 Revert "icwmp: reload icwmp if new option 43 is received"
This reverts commit b708797e87.
2018-03-14 14:57:22 +01:00
Sukru Senli
6ed3ae9458 icwmp-4.0-2018-03-14 2018-03-14 14:56:09 +01:00
Sukru Senli
b708797e87 icwmp: reload icwmp if new option 43 is received 2018-03-14 14:36:16 +01:00
Ionuț-Alex Oprea
214c9b7e2a iop: ssh_sysupgrade: ssh timeout in 60 seconds 2018-03-14 14:34:03 +01:00
Sukru Senli
6c2c23924d icwmp: reload icwmp when DNS servers are changed as well 2018-03-14 14:13:35 +01:00
Sukru Senli
45034ef8a6 Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* 02188f6 Ticket refs #13889: Support needed to differentiate WEP 64/128 encryption modes and also the mapping required to set WiFi Key #2 to WiFi Key #4 values from ACS
-------------------------------------------------------------------------------
commit 02188f68caac03e15bad8af98611cc28d856e69f
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-13 12:20:14 +0100

    Ticket refs #13889: Support needed to differentiate WEP 64/128 encryption
    modes and also the mapping required to set WiFi Key #2 to WiFi Key #4 values
    from ACS

Base directory -> /
 dm/dmtree/tr181/wifi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2018-03-13 18:55:39 +01:00
Kenneth Johansson
cedf4806e4 generate_tarballs: mediatek linux dir has changed name.
It is only linux-iopsys-ramips now.
2018-03-13 15:29:20 +01:00
Ronny Nilsson
e773632860 endptmngr: Extend signals handling to catch more of them.
Needed for procd reload to work.
2018-03-13 15:19:33 +01:00
Sukru Senli
72344b29b0 inteno-netmodes: limit bridged mode from sdx810-ap 2018-03-13 14:46:34 +01:00
Ronny Nilsson
6694e1975b voice_client: re-enable comment away settings Asterisk no longer need.
It should work now.
This reverts commit b15782bd07.
2018-03-13 11:35:55 +01:00
Kenneth Johansson
2f600a6b58 Revert "samba3: create directories in start script."
This reverts commit 7b1a960d5b.
2018-03-13 11:33:43 +01:00
Ronny Nilsson
aaa473edbf endptmngr: listen for new object events instead of polling 2018-03-13 11:27:43 +01:00
Kenneth Johansson
7b1a960d5b samba3: create directories in start script.
was done in preinit before.
2018-03-12 22:06:42 +01:00
Sukru Senli
336c2b2aa2 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* f900dfd do not arping arponly clients fixes #14416
-------------------------------------------------------------------------------
commit f900dfdb36475d4b2cbd7fb6098c32de2b4b58f5
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-03-12 16:08:27 +0100

    do not arping arponly clients fixes #14416

Base directory -> /
 network.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2018-03-12 18:18:26 +01:00
Sukru Senli
5664619289 Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* 110737a Ticket refs #14143: Unable to get wan6 connection in ACS "get parameters" list
* cc552c8 Ticket refs #14137: Unable to retrieve "ErrorsSent", "ErrorsReceived", "DiscardPacketsSent", "DiscardPacketsReceived" parameters for Radios and Ethernet Interfaces via ACS
* 1546cf5 Ticket refs #13884: Enabling "WPA-WPA2-Enterprise" encryption mode via ACS for SSID is not reflected in the RG GUI
* 83d902f Ticket refs #14144: Unable to set "Device.IP.Interface.${i}.IPv4Address.${i}.Enable" parameter from ACS
* ee3096d Ticket refs #13917: Device.Ethernet.Interface.x.Status show always Up even LAN port is not up
-------------------------------------------------------------------------------
commit 110737a3c0f06df26d469608cbd956e26095407e
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-09 18:41:24 +0100

    Ticket refs #14143: Unable to get wan6 connection in ACS "get parameters"
    list

Base directory -> /
 dm/dmtree/tr181/ip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit cc552c8ef26686e71ae84eb586b62a9d0eba14d9
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-09 18:36:03 +0100

    Ticket refs #14137: Unable to retrieve "ErrorsSent", "ErrorsReceived",
    "DiscardPacketsSent", "DiscardPacketsReceived" parameters for Radios and
    Ethernet Interfaces via ACS

Base directory -> /
 dm/dmtree/tr181/ethernet.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
 dm/dmtree/tr181/ethernet.h |  4 ++++
 dm/dmtree/tr181/wifi.c     | 41 ++++++++++++++++++++++++++++++++++++++++-
 dm/dmtree/tr181/wifi.h     |  4 ++++
 4 files changed, 92 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 1546cf5cbe49590537750f5758a549bac6026689
Author: Omar Kallel <omar.kallel@pivasoftware.com>
Date: 2018-03-09 10:49:34 +0100

    Ticket refs #13884: Enabling "WPA-WPA2-Enterprise" encryption mode via ACS
    for SSID is not reflected in the RG GUI

Base directory -> /
 dm/dmtree/tr181/wifi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit 83d902fdb2d68985dad7ea2f19307326aff68c6f
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-08 17:49:31 +0100

    Ticket refs #14144: Unable to set
    "Device.IP.Interface.${i}.IPv4Address.${i}.Enable" parameter from ACS

Base directory -> /
 dm/dmtree/tr181/ip.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
commit ee3096d50ca05f19fb377ec1d7496db50c82e9e6
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-08 17:31:12 +0100

    Ticket refs #13917: Device.Ethernet.Interface.x.Status show always Up even
    LAN port is not up

Base directory -> /
 dm/dmtree/tr181/ethernet.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2018-03-12 18:17:45 +01:00
Ke Hu
af0debb6a9 add open to ice and endptmngr
Do not open ice to open
endpt add open definition for  public compiling
add a new function for tarball script to upload endptmngr
2018-03-09 16:13:16 +01:00
Ke Hu
19466fa4a4 add config.in file
endptmng needs open options
2018-03-09 13:08:49 +01:00
Amin Ben Ramdhane
5ea9066e73 Ticket refs #14209: TR-069: add support for compiling both TR-098 and TR-181 support and make it UCI configurable 2018-03-08 16:28:21 +01:00
Ke Hu
55e39205dc upload name issue
kernel name is 502030, but config define is 502003
different name.
2018-03-08 16:18:35 +01:00
Sukru Senli
ad652de055 Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* a65572a DeviceInfo.VendorLogFile : update instance in dmmap instead of systemwq!
* 6fc82a6 Ticket refs #14388: "Device.WiFi.AccessPoint.x.Enable"  is 0 after factory reset even though the Access points are enabled
* 0c20fe9 Ticket refs #14270: X_IOPSYS_ifname is wrongly populated for wifi clients in Device.Hosts.Host.{i}. profile
* 59261aa Ticket refs #14266: Ethernet Interface Alias parameter to be populated as same interface name
* 79aa835 #14159:TR-069: Vendor logfile in datamodel
* 393b7af Ticket refs #14185: TR069 reboot not working
* 679324f Ticket refs #13818: Not able to Upgrade/downgrade RG using TR069 . Required/Steps for Upgrade procedure
* fe026c3 Ticket refs #14209: TR-069: add support for compiling both TR-098 and TR-181 support and make it UCI configurable
-------------------------------------------------------------------------------
commit a65572af53664945cc6af751c2cbff3a37d64833
Author: Feten Besbes <feten.besbes@pivasoftware.com>
Date: 2018-03-08 11:03:49 +0100

    DeviceInfo.VendorLogFile : update instance in dmmap instead of systemwq!

Base directory -> /
 dm/dmtree/common/deviceinfo.c | 28 ++++++++++++++++++++++++----
 1 file changed, 24 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 6fc82a68e0377a4aaa4a0a7f49c04803a122e4d1
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-07 13:04:21 +0100

    Ticket refs #14388: "Device.WiFi.AccessPoint.x.Enable"  is 0 after factory
    reset even though the Access points are enabled

Base directory -> /
 dm/dmtree/tr181/wifi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 0c20fe9560304df4ce29cf67c499062e75f436fa
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-07 13:02:10 +0100

    Ticket refs #14270: X_IOPSYS_ifname is wrongly populated for wifi clients in
    Device.Hosts.Host.{i}. profile

Base directory -> /
 dm/dmtree/tr181/hosts.c | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 59261aabea1a8f31af52e5401541584e5743ab22
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-07 12:39:06 +0100

    Ticket refs #14266: Ethernet Interface Alias parameter to be populated as
    same interface name

Base directory -> /
 dm/dmtree/tr181/ethernet.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 79aa8353d7cc64933fafb1ee69d7991b77b18336
Author: Feten Besbes <feten.besbes@pivasoftware.com>
Date: 2018-03-07 10:07:42 +0100

    #14159:TR-069: Vendor logfile in datamodel

Base directory -> /
 dm/dmtree/common/deviceinfo.c | 63 ++++++++++++++++++++++++++++++++++++++
 dm/dmtree/common/deviceinfo.h |  7 +++++
 scripts/icwmp.sh              | 70 ++++++++++++++++++++++++++++++-------------
 xml.c                         | 26 ++++++++--------
 4 files changed, 131 insertions(+), 35 deletions(-)
-------------------------------------------------------------------------------
commit 393b7af010908ebccb379cc5620656088c37bbc8
Author: Omar Kallel <omar.kallel@pivasoftware.com>
Date: 2018-03-01 14:21:25 +0100

    Ticket refs #14185: TR069 reboot not working

Base directory -> /
 event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 679324fc33045953adc0ec63265738fc1b2e38ef
Author: Omar Kallel <omar.kallel@pivasoftware.com>
Date: 2018-03-01 11:37:55 +0100

    Ticket refs #13818: Not able to Upgrade/downgrade RG using TR069 .
    Required/Steps for Upgrade procedure

Base directory -> /
 xml.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit fe026c3ffa7623f12d14d4b164c458f3e5c5437c
Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
Date: 2018-03-01 10:41:34 +0100

    Ticket refs #14209: TR-069: add support for compiling both TR-098 and TR-181
    support and make it UCI configurable

Base directory -> /
 bin/Makefile.am                      |   5 +-
 config/cwmp                          |   3 +
 configure.ac                         |  14 ---
 dm/dmcommon.c                        |   9 ++
 dm/dmcommon.h                        |   1 +
 dm/dmcwmp.c                          |   2 +-
 dm/dmcwmp.h                          |  15 ++-
 dm/dmentry.c                         |  75 +++++++++++--
 dm/dmtree/common/root.c              | 200 +++++++++++++++++++++++++----------
 dm/dmtree/common/root.h              |  41 ++++---
 dm/dmtree/common/x_inteno_se_owsd.c  |  40 ++++---
 dm/dmtree/tr098/landevice.c          |  16 +--
 dm/dmtree/tr098/landevice.h          |  14 +--
 dm/dmtree/tr098/layer_2_bridging.c   |  22 ++--
 dm/dmtree/tr098/layer_3_forwarding.c |  25 ++---
 dm/dmtree/tr098/x_inteno_se_wifi.c   |   4 +-
 dm/dmtree/tr098/x_inteno_se_wifi.h   |   4 +-
 dm/dmtree/tr181/bridging.c           |  20 ++--
 dm/dmtree/tr181/bridging.h           |   2 -
 dm/dmtree/tr181/dhcp.c               |   2 +-
 dm/dmtree/tr181/hosts.c              |   4 +-
 dm/dmtree/tr181/ip.c                 |  13 ++-
 dm/dmtree/tr181/nat.c                |   2 +-
 dm/dmtree/tr181/ppp.c                |   8 +-
 dm/dmtree/tr181/routing.c            |  21 ++--
 dm/dmtree/tr181/wan.c                |   6 +-
 dm/dmtree/tr181/wifi.c               |  22 ++--
 dm/dmtree/tr181/wifi.h               |  18 ++--
 event.c                              |   2 +-
 xml.c                                |  12 +--
 30 files changed, 376 insertions(+), 246 deletions(-)
-------------------------------------------------------------------------------
2018-03-08 16:05:04 +01:00
Erik Horemans
56a8f5967d new ice-client 5.0.2-RC15 2018-03-08 16:01:51 +01:00
Reidar Cederqvist
4ee2668013 iop: scripts: update update_feed_branches 2018-03-08 16:01:37 +01:00
Sukru Senli
1c0896dd7b iop: update_feed_branches 2018-03-08 16:01:33 +01:00
Kent Ekholm
dcc55d8564 Update feed [ feed_inteno_packages ] package [ endptmngr ]
-------------------------------------------------------------------------------
* 719be12 Revert "Restart the endptmngr daemon when UCI voice client settings"
-------------------------------------------------------------------------------
commit 719be12028f018e0c1e145082b920e7aefc3c8fa
Author: Kent Ekholm <Kent.Ekholm@evidente.se>
Date: 2018-03-07 17:27:21 +0100

    Revert "Restart the endptmngr daemon when UCI voice client settings"

    This reverts commit 5af57d240649cff2959dc9117d3938447a8f52b7.

    When endptmngr was restarted the endpoint initialisation failed and
    endptmngr eventually crashed on all restart attempts.

Base directory -> /
 files/etc/init.d/endptmngr | 5 -----
 1 file changed, 5 deletions(-)
-------------------------------------------------------------------------------
2018-03-07 18:17:20 +01:00
Kent Ekholm
b15782bd07 Revert "Comment away settings Asterisk no more need. The Endptmngr program"
This reverts commit 460e72f094.

This commit made incoming calls not work beacause no codecs was configured.
2018-03-07 17:24:44 +01:00
Ionut-Alex Oprea
358b1b0af0 inteno-netmodes: flush network cache before getting the ip 2018-03-07 10:56:36 +01:00
Ronny Nilsson
b84dfd06ee endptmngr: Debug print of endpoint names 2018-03-06 18:30:16 +01:00
Ionut-Alex Oprea
3c6042c0f8 iop: build_branch: fix param count 2018-03-06 14:32:02 +01:00
Ionut-Alex Oprea
afea9fc91f iop: build_branch: add more help messages 2018-03-06 14:10:15 +01:00
Ionut-Alex Oprea
7cf104cdd3 iop: add command: build_branch 2018-03-06 13:51:58 +01:00
Ronny Nilsson
7c84202d60 voice_client: remove unused code 2018-03-05 17:06:43 +01:00
Ronny Nilsson
255bb23bcd voice_client: for Asterisk v13 in combination with endptmngr we try
to limit excessive voice transcoding. We use ALAW everywhere internally
and transcode only if it really is necessary.
2018-03-05 17:06:43 +01:00
Ronny Nilsson
094db5b7fa endptmngr: Line signaling didn't work before the first connection
Refs: #14363
2018-03-05 17:06:43 +01:00
Anjan Chanda
7da065dd79 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 0e50e2b wireless: mediatek: enumerate only AP mode interfaces in load_wireless
-------------------------------------------------------------------------------
commit 0e50e2b81fe1da0b48480e8af2dfc409b2812c11
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2018-03-05 13:59:01 +0100

    wireless: mediatek: enumerate only AP mode interfaces in load_wireless

Base directory -> /
 wireless.c | 3 +++
 1 file changed, 3 insertions(+)
-------------------------------------------------------------------------------
2018-03-05 14:59:21 +01:00
Sukru Senli
5b12b73fa3 inteno-netmodes: fix netmode-discover checking for wifi script running 2018-03-05 13:51:22 +01:00
Sukru Senli
d01308ac9e inteno-netmodes: exclude SDX810-AP board from routed_brcm 2018-03-05 12:00:25 +01:00
Ionut-Alex Oprea
7420bfc587 inteno-netmodes: netmode-discover: prevent busy waiting 2018-03-05 11:14:32 +01:00
Sukru Senli
f9896c5776 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 3de7c6a use correct path for passwd
-------------------------------------------------------------------------------
commit 3de7c6af6a74a5748d0dea9781931bfbbb178246
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-03-04 11:34:40 +0100

    use correct path for passwd

Base directory -> /
 system.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2018-03-04 11:34:54 +01:00
Sukru Senli
17d502dd91 voice-client: if call log is not available return empty array 2018-03-03 11:56:50 +01:00
Ionut-Alex Oprea
992c628bff Update feed [ feed_inteno_packages ] package [ inteno-netmodes ]
-------------------------------------------------------------------------------
* b898924 ubus call netmode sync: make the call reentrant by adding a mutex
* bd47286 add ubus sync method: push credentials to all registered repeaters
-------------------------------------------------------------------------------
commit b898924491c378ca09ab124991b27f54a336e4e9
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-03-02 15:34:22 +0100

    ubus call netmode sync: make the call reentrant by adding a mutex

    	if this ubus call is issued twice at the same time,
    only one will do the actual work and the other one will return with
    an error.

    	Can be tested with:
    	while true ; do ubus call netmode sync & done
    Most of the calls will fail
    (Done with return code 9 == UBUS_STATUS_UNKNOWN_ERROR),
    but still the maximum (continuosly) possible will run.

Base directory -> /
 netmoded.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit bd472860ff1fe71ebd066813dcebe8fd99553747
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-03-02 14:26:59 +0100

    add ubus sync method: push credentials to all registered repeaters

Base directory -> /
 netmoded.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2018-03-02 15:45:11 +01:00
Ionut-Alex Oprea
54214a0918 Update feed [ feed_inteno_packages ] package [ inteno-netmodes ]
-------------------------------------------------------------------------------
* dfc2c63 netmoded: do not compare network for local ifaces refs #14339
-------------------------------------------------------------------------------
commit dfc2c634122f2b2eb9aad12125aa8d08fdf9e20a
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-03-01 11:19:07 +0100

    netmoded: do not compare network for local ifaces refs #14339

Base directory -> /
 config.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2018-03-01 11:46:41 +01:00
Ronny Nilsson
432945e380 voice_client: disable likely unused code 2018-02-27 17:31:05 +01:00
Ronny Nilsson
b118f84ea0 endptmngr: Drop packets if we can't keep up the pace. 2018-02-27 17:31:05 +01:00
Sukru Senli
f0b3e6e381 icwmp: install hotplug script 2018-02-27 15:10:20 +01:00
Sukru Senli
1fd40c307c questd: remove imonitor completely 2018-02-27 14:40:00 +01:00
Sukru Senli
7d32052950 questd: imonitor: do not monitor bsd 2018-02-27 14:33:06 +01:00
Sukru Senli
64a0bdd03e inteno-netmodes: netmode-discover: fping network only if mask is equals or higher than 24 2018-02-27 14:07:38 +01:00
Sukru Senli
8b20543e99 voice-client: adapt to new endpt status output 2018-02-27 14:04:32 +01:00
Sukru Senli
563b810fec icwmp: updated 2018-02-27 13:06:44 +01:00
Sukru Senli
10e699a0c7 iop: select ppp-mod-pppoe 2018-02-27 11:54:05 +01:00
Ronny Nilsson
25fcc515f6 Implement endpoint provisioning, configuration via UCI and
UBUS event when user does something with the phone.
Refs: #13863 #13869 #14123
2018-02-27 11:51:21 +01:00
Sukru Senli
163edf5ed9 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* ad37dc3 mediatek: report rssi in scanresults
-------------------------------------------------------------------------------
commit ad37dc3000cad30702b309be6e339c5a2e16575a
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-02-27 10:24:48 +0100

    mediatek: report rssi in scanresults

Base directory -> /
 mediatek.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2018-02-27 10:25:24 +01:00
Sukru Senli
8e9851b3c8 voice-client: show call duration as positive value 2018-02-27 09:39:02 +01:00
Sukru Senli
575d32246f iop: configs: do not deselect miniupnpd for ramips 2018-02-26 21:12:14 +01:00
Sukru Senli
901f0dbf46 voice-client: duration is integer 2018-02-26 18:37:03 +01:00
Sukru Senli
c72b6a0500 voice-client: show duration of calls 2018-02-26 18:36:07 +01:00
Sukru Senli
3129030838 voice-client: support call log 2018-02-26 17:18:19 +01:00
Ronny Nilsson
460e72f094 Comment away settings Asterisk no more need. The Endptmngr program
handles everything low level Broadcom endpoint and reads its settings
directly from UCI.
2018-02-26 16:00:42 +01:00
Sukru Senli
c9c362b9a9 icwmp: fixed compilation error for ramips targets 2018-02-26 15:35:24 +01:00
Sukru Senli
b1e9a4a1e3 icwmp-4.0-2018-02-26 2018-02-26 10:31:12 +01:00
Sukru Senli
faadbfe4a3 voice-client: show line status correctly via ubus 2018-02-25 14:22:31 +01:00
Sukru Senli
47d918b144 voice-client: show only configured sip peers via ubus 2018-02-25 13:47:04 +01:00
Sukru Senli
26611cec75 voice-client: turn of voice led if no sip account is enabled 2018-02-25 13:44:36 +01:00
Sukru Senli
bdc4c121ab icwmp-4.0-2018-02-25 2018-02-25 12:51:02 +01:00
Sukru Senli
dc181b0b75 voice-client: name ubus object voice.asterisk 2018-02-25 12:50:59 +01:00
Sukru Senli
93ae51f1ba voice-client: voice-monitor started on boot 2018-02-25 11:18:31 +01:00
Sukru Senli
7b08997009 voice-client: voice status supports up to 4 sip accounts 2018-02-25 00:07:12 +01:00
Sukru Senli
70339816f7 voice-client: temporary voice ubus object 2018-02-25 00:02:09 +01:00
Sukru Senli
65b3688812 voice-client: updated voice-monitor script 2018-02-24 16:13:23 +01:00
Sukru Senli
37173bd7fb voice-client: initial voice-monitor script 2018-02-24 16:13:23 +01:00
Benjamin Larsson
c46f5444b0 Depend on bcmkernel/bcmopen, dependencies fix 2018-02-22 13:58:30 +01:00
Sukru Senli
a6e56c42a5 inteno-netmodes: testnet: give repeater more time to reconnect to master before retrying 2018-02-21 09:45:59 +01:00
Kenneth Johansson
30e927e3db move config vg50. 2018-02-19 16:28:19 +01:00
Kenneth Johansson
c62103efe3 move config eg300. 2018-02-19 16:25:19 +01:00
Kenneth Johansson
2c26232aac move config dg301al. 2018-02-19 16:17:12 +01:00
Kenneth Johansson
c369409661 move config dg301. 2018-02-19 16:15:17 +01:00
Kenneth Johansson
038f1d361f move config dg200al. 2018-02-19 16:12:56 +01:00
Kenneth Johansson
4f2891ae1e move config dg200. 2018-02-19 16:09:48 +01:00
Kenneth Johansson
b1f98201c1 move config cg300. 2018-02-19 15:42:50 +01:00
Kenneth Johansson
c5bb141696 move config sdx810_rg. 2018-02-19 15:35:13 +01:00
Kenneth Johansson
55b1dc6a1a move config eg400. 2018-02-19 15:30:11 +01:00
Kenneth Johansson
287f3b8c83 move config for dg400prime. 2018-02-19 15:27:14 +01:00
Kenneth Johansson
09fca1ca7e move dg400 config. 2018-02-19 15:20:28 +01:00
Kenneth Johansson
7b0eb9bd81 move config for f104. 2018-02-19 15:07:27 +01:00
Kenneth Johansson
f6b03204dc move config for f104. 2018-02-19 15:04:52 +01:00
Kenneth Johansson
24f0a5e516 Move config from feeds-inteno-targets.
And add support for board specific overrides.
2018-02-19 14:54:54 +01:00
Erik Horemans
cae2fdb421 new ice-client 5.0.2-RC5 2018-02-17 16:11:28 +01:00
Sukru Senli
a2ae74a9d6 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 319bf11 network: copy only the macaddr to repeated array
-------------------------------------------------------------------------------
commit 319bf11f57e1eb7eb2e8c676def5b15aeec228c1
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-02-17 15:59:03 +0100

    network: copy only the macaddr to repeated array

Base directory -> /
 network.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2018-02-17 16:07:52 +01:00
Sukru Senli
d08ce1dfdb inteno-netmodes: netmode-discover: fping wan network only if mask is 24 or less 2018-02-17 16:07:05 +01:00
Kent Ekholm
0e5beb085a Update feed [ feed_inteno_packages ] package [ endptmngr ]
-------------------------------------------------------------------------------
* 8d5d309 Added ubus method to query hook status for a line.
-------------------------------------------------------------------------------
commit 8d5d309e64bcc30ee5612787671c8fcec58b4c26
Author: Kent Ekholm <Kent.Ekholm@evidente.se>
Date: 2018-02-13 19:07:52 +0100

    Added ubus method to query hook status for a line.

    Ref: 14123

Base directory -> /
 src/endpt.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
-------------------------------------------------------------------------------
2018-02-14 12:45:31 +01:00
Reidar Cederqvist
43e9bd1e6f owd: if ipv6 and linklocal is on, listen on ipv6 link local address 2018-02-13 12:04:54 +01:00
Sukru Senli
1897ed4494 Revert "iop: config: select rulengd by default"
This reverts commit 6f4916fa7b.
2018-02-13 11:58:31 +01:00
Kent Ekholm
48c474c99d Update feed [ feed_inteno_packages ] package [ endptmngr ]
-------------------------------------------------------------------------------
* 8178249 Generating offhook and onhook events on ubus path asterisk.endpoint.
-------------------------------------------------------------------------------
commit 8178249f6a40d8a11023e9c9581dd8dbd05364de
Author: Kent Ekholm <Kent.Ekholm@evidente.se>
Date: 2018-02-13 11:00:31 +0100

    Generating offhook and onhook events on ubus path asterisk.endpoint.

    Ref: 14123

Base directory -> /
 src/endpt.c | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
-------------------------------------------------------------------------------
2018-02-13 11:09:09 +01:00
Sukru Senli
6f4916fa7b iop: config: select rulengd by default 2018-02-12 21:57:28 +01:00
Sukru Senli
aa4205e868 icwmp-4.0-2018-02-12 2018-02-12 16:11:33 +01:00
Sukru Senli
febbc8c2ae iop: config: deselect layer2interface 2018-02-10 16:35:18 +01:00
Sukru Senli
722b97d207 layer2interface: removed; its content is moved to Broadcom target 2018-02-10 16:11:03 +01:00
Sukru Senli
35aa491288 owsd: remove redirect from global config 2018-02-10 14:42:06 +01:00
Sukru Senli
84896fcc28 rulend: start with procd 2018-02-10 13:30:26 +01:00
Sukru Senli
e35d1ca5ef rulegd: do not include kernel.mk in the Makefile 2018-02-10 13:20:57 +01:00
Sukru Senli
e2469be380 rulengd: change the example recipe config 2018-02-10 13:18:27 +01:00
Sukru Senli
050187987f rulengd: do not depend on json-c, already depending on libjson-c 2018-02-10 13:16:32 +01:00
Hrvoje Varga
e39fc84722 rulengd: add package
Signed-off-by: Hrvoje Varga <hrvoje.varga@sartura.hr>
2018-02-10 13:03:10 +01:00
Sukru Senli
22b9d0f698 inteno-netmodes: pre-set ifname in wireless configs 2018-02-10 12:19:07 +01:00
Sukru Senli
0bbcc75b1e layer2interface: populate wan ifname with various norhbound interfaces 2018-02-10 12:15:31 +01:00
Benjamin Larsson
ca1d9f7fb8 Update git hash 2018-02-09 16:14:11 +01:00
Sukru Senli
4ccb48f659 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* dcecd25 ignore non-local members of a bridge if last 10 digit of its mac matches the port mac
-------------------------------------------------------------------------------
commit dcecd257d1c369521acd1d47292e501459a81d93
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2018-02-08 20:36:38 +0100

    ignore non-local members of a bridge if last 10 digit of its mac matches the
    port mac

Base directory -> /
 network.c | 26 +++++++++++++++++++++++++-
 network.h |  1 +
 port.c    |  6 +++++-
 port.h    |  2 +-
 4 files changed, 32 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2018-02-08 20:37:26 +01:00
Sukru Senli
c1e9e80a3f questd: select swconfig and libnl-tiny only for iopsys_ramips target 2018-02-08 15:21:14 +01:00
Sukru Senli
c3daa7416b inteno-netmodes: use correct command to define MTK 2018-02-08 14:34:55 +01:00
Benjamin Larsson
aa36791efd Update feed [ feed_inteno_packages ] package [ u-boot ]
-------------------------------------------------------------------------------
* e6465d2 Rename sdx_500ap -> sdx810_ap
-------------------------------------------------------------------------------
commit e6465d2ad8ac159ada0051d8f30385d9d7d3ba86
Author: Benjamin Larsson <benjamin@southpole.se>
Date: 2018-02-08 12:39:33 +0100

    Rename sdx_500ap -> sdx810_ap

Base directory -> /
 arch/mips/Kconfig               |  16 ++
 board/inteno/sdx810_ap/Kconfig  |  23 ++
 board/inteno/sdx810_ap/Makefile |  10 +
 board/inteno/sdx810_ap/board.c  |   7 +
 configs/sdx810_ap_defconfig     | 511 ++++++++++++++++++++++++++++++++++++++++
 5 files changed, 567 insertions(+)
-------------------------------------------------------------------------------
2018-02-08 12:41:56 +01:00
Sukru Senli
231c76c874 inteno-netmodes: remove SDX from brcm repeater mode 2018-02-08 11:43:18 +01:00
Benjamin Larsson
66e669c06a Rename sdx_500ap -> sdx810_ap 2018-02-08 11:10:07 +01:00
Sukru Senli
b44ec76bd0 icwmp-4.0-2018-02-07 2018-02-07 21:06:32 +01:00
Sukru Senli
6113095ba9 inteno-netmodes: set MTK=1 if kmod-mt*mtk package is installed 2018-02-07 18:55:38 +01:00
Sukru Senli
3475bc4aba port-management: set uplink for wan port by default 2018-02-07 12:02:54 +01:00
Sukru Senli
ae406ee1eb inteno-netmodes: set vid for lan and wan devices for mtk 2018-02-07 11:27:37 +01:00
Sukru Senli
c2b14d454a Update feed [ feed_inteno_packages ] package [ owsd ]
-------------------------------------------------------------------------------
* fa25ad0 owsd now doesn't exit on invalid interface
-------------------------------------------------------------------------------
commit fa25ad0b5af3c9a5c16124a9f699dae3be7b68dd
Author: Matija Amidzic <matija.amidzic@sartura.hr>
Date: 2018-02-05 09:08:38 +0100

    owsd now doesn't exit on invalid interface

    if a non existing interface is provided in the command line arguments, owsd
    will ignore it now and continue working

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

Base directory -> /
 src/main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
-------------------------------------------------------------------------------
2018-02-06 16:47:25 +01:00
Kenneth Johansson
6cb9f9d176 genconfig: Add SDX810-RG board. 2018-02-05 16:57:06 +01:00
Ionut-Alex Oprea
55ece86d76 iop: config: select juci-openvpn package 2018-02-05 16:56:15 +01:00
Kenneth Johansson
cd46d8ea1d uboot: Fix hang. variable is of array type not char.
Boot was hanging.
2018-02-05 15:59:55 +01:00
Reidar Cederqvist
37de7ba685 iop: use openwrt based versions of juci-network plugins 2018-02-05 15:23:51 +01:00
127 changed files with 1670 additions and 1598 deletions

View File

@@ -8,10 +8,10 @@
include $(TOPDIR)/rules.mk
PKG_RELEASE:=1
PKG_VERSION:=1.1.0
PKG_VERSION:=1.2.0
PKG_SOURCE_URL:=http://public.inteno.se:/dectmngr2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=ace6a3dcb6aa463cf5a34ad39ac37a5bc7d4ce5e
PKG_SOURCE_VERSION:=dafaf749e89d1efaa7eb02709a3c0ef3e813c052
PKG_NAME:=dectmngr2

4
endptmngr/Config.in Executable file
View File

@@ -0,0 +1,4 @@
config ENDPT_OPEN
bool "Use pre-compiled version for Open SDK"
default n

View File

@@ -8,32 +8,54 @@
include $(TOPDIR)/rules.mk
PKG_RELEASE:=1
PKG_VERSION:=0.1
PKG_VERSION:=0.2
PKG_SOURCE_VERSION:=0cb8accbac3355b97a17064ec7da010a2c42db7b
ifeq ($(CONFIG_ENDPT_OPEN),y)
BRCM_KERNEL_PROFILE=$(shell echo $(CONFIG_BCM_KERNEL_PROFILE) | sed s/\"//g)
PKG_SOURCE:=endptmngr-$(BRCM_KERNEL_PROFILE)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_URL:=http://iopsys.inteno.se/iopsys/consumer/
PKG_NAME:=endptmngr-open
else
PKG_SOURCE_URL:=git@private.inteno.se:endptmngr
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=e14f741c9c7ecdc6584ce109bed22d3f85a29a16
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_NAME:=endptmngr
endif
RSTRIP:=true
export BUILD_DIR
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
include $(INCLUDE_DIR)/package.mk
define Package/endptmngr/config
source "$(SOURCE)/Config.in"
endef
define Package/endptmngr
CATEGORY:=Utilities
TITLE:=Brcmslic
URL:=
DEPENDS:= +libubox +ubus +libpicoevent
DEPENDS:= +libubox +ubus +libpicoevent +PACKAGE_bcmkernel:bcmkernel +PACKAGE_bcmopen:bcmopen
endef
define Package/endptmngr/description
endptmngr
endef
ifeq ($(CONFIG_ENDPT_OPEN),y)
define Build/Compile
endef
endif
define Package/endptmngr/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/etc/init.d/

View File

@@ -19,14 +19,14 @@ export PLATFORM_INCLUDE:=platforms/iopsys/build.mk
export DATE:=$(shell date +%Y-%m-%d-%H-%M-%S)
export LOGIN:=$(shell whoami)
BASE_PKG_VERSION:=5.0.2
PKG_RELEASE:=RC4
PKG_VERSION:=$(BASE_PKG_VERSION)-$(PKG_RELEASE)_$(DATE)_$(LOGIN)
BASE_PKG_VERSION:=5.1.1
PKG_RELEASE:=
PKG_VERSION:=$(BASE_PKG_VERSION)$(PKG_RELEASE)_$(DATE)_$(LOGIN)
export PKG_VERSION
###########################--RELEASE--################################
PKG_SOURCE_VERSION:=d7102770d9a7bbd5e926a02391e221d947353544
PKG_SOURCE_VERSION:=e8bf50630e6ba12dc2d223112643077c4db49189
ifeq ($(CONFIG_ICE_OPEN),y)
TARGET_PROFILE=$(shell echo $(CONFIG_TARGET_BOARD) | sed s/\"//g)
PKG_SOURCE_URL:=http://iopsys.inteno.se/iopsys/consumer/
@@ -132,12 +132,12 @@ endef
ifeq ($(CONFIG_ICE_OPEN),y)
define Package/ice-client/install
$(INSTALL_DIR) $(1)/bin
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DIR) $(1)/usr
$(CP) $(PKG_BUILD_DIR)/bin/* $(1)/bin/
$(CP) $(PKG_BUILD_DIR)/etc/* $(1)/etc/
$(CP) $(PKG_BUILD_DIR)/usr/* $(1)/usr/
#$(INSTALL_DIR) $(1)/bin
#$(INSTALL_DIR) $(1)/etc
#$(INSTALL_DIR) $(1)/usr
#$(CP) $(PKG_BUILD_DIR)/bin/* $(1)/bin/
#$(CP) $(PKG_BUILD_DIR)/etc/* $(1)/etc/
#$(CP) $(PKG_BUILD_DIR)/usr/* $(1)/usr/
endef
else
define Package/ice-client/install

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

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

@@ -1,14 +1,4 @@
if PACKAGE_libdatamodel
choice
prompt "Select Data Model"
default tr098
config DATAMODEL_TR098
bool "TR-098"
config DATAMODEL_TR181
bool "TR-181"
endchoice
config UPNP_TR064
bool "Compile with tr064 features"

29
icwmp/Makefile Executable file → Normal file
View File

@@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=icwmp
PKG_VERSION:=4.0-2017-12-22
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:=30f47f79ef7d21e89a856f444f6f86ab9175d1ed
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
@@ -111,9 +119,7 @@ ifeq ($(CONFIG_XMPP_ENABLE),y)
CONFIGURE_ARGS += \
--enable-xmpp
endif
CONFIGURE_ARGS += $(if $(CONFIG_DATAMODEL_TR181),--enable-datamodel=tr181,--enable-datamodel=tr098)
ifeq ($(BUILD_VARIANT),zstream)
CONFIGURE_ARGS += \
--enable-http=zstream \
@@ -169,6 +175,16 @@ ifeq ($(CONFIG_CWMP_SCRIPTS_FULL),y)
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/icwmp.sh $(1)/usr/sbin/icwmp
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
@@ -204,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
@@ -18,6 +26,8 @@ handle_icwmp_reload() {
mkdir -p /tmp/ipv4
network_flush_cache
local previpaddr=""
local curipaddr=""
local ipaddrfile=/tmp/ipv4/$INTERFACE-ipaddr
@@ -39,10 +49,29 @@ handle_icwmp_reload() {
network_get_subnets cursubnets $INTERFACE
[ -n "$cursubnets" ] && echo $cursubnets > $subnetsfile || rm -f $subnetsfile
[ "$previpaddr" = "$curipaddr" -a "$prevgateway" = "$curgateway" -a "$prevsubnets" = "$cursubnets" ] && exit 0
local prevdnsservers=""
local curdnsservers=""
local dnsserverfile=/tmp/ipv4/$INTERFACE-dnsservers
prevdnsservers=$(cat $dnsserverfile 2>/dev/null)
network_get_dnsserver curdnsservers $INTERFACE
[ -n "$curdnsservers" ] && echo $curdnsservers > $dnsserverfile || rm -f $dnsserverfile
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

@@ -0,0 +1,44 @@
#!/bin/sh
. /lib/functions.sh
set_cwmp_reqopts() {
### Ask for DHCP Option 43 only if CWMP is enabled ###
local wan=$(uci -q get cwmp.cpe.default_wan_interface)
local dhcp_discovery=$(uci -q get cwmp.acs.dhcp_discovery)
local discovery=0
case $dhcp_discovery in
enable|1) discovery=1 ;;
esac
local newreqopts=
local baseopts=
local reqopts="$(uci -q get network.$wan.reqopts)"
local proto="$(uci -q get network.$wan.proto)"
local tropts="43"
local oldreqopts="$reqopts"
local ropt iopt
for ropt in $reqopts; do
case $ropt in
43) ;;
*) baseopts="$baseopts $ropt" ;;
esac
done
ropt=""
reqopts="$baseopts $tropts"
for ropt in $reqopts; do
case $ropt in
43) [ $discovery -eq 1 ] && newreqopts="$newreqopts $ropt" ;;
*) newreqopts="$newreqopts $ropt" ;;
esac
done
if [ "$proto" == "dhcp" ]; then
newreqopts="$(echo $newreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
oldreqopts="$(echo $oldreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
[ "$newreqopts" == "$oldreqopts" ] && return
uci -q set network.$wan.reqopts="$newreqopts"
uci commit network
fi
}
set_cwmp_reqopts

42
imonitor/Makefile Normal file
View File

@@ -0,0 +1,42 @@
#
# Copyright (C) 2018 Inteno
#
include $(TOPDIR)/rules.mk
PKG_NAME:=imonitor
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
PKG_SOURCE_PROTO=git
PKG_SOURCE_URL:=http://public.inteno.se/imonitor.git
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>
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/imonitor
CATEGORY:=Utilities
TITLE:=Inteno process supervisor
DEPENDS:=+ubox +uci +ubus +rpcd +rpcd-mod-file
endef
define Package/imonitor/description
imonitor is a process supervisor or a process control system similar to the Supervisor (http://supervisord.org/)
endef
define Package/imonitor/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/imonitor $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/config
endef
$(eval $(call BuildPackage,imonitor))

View File

@@ -0,0 +1,9 @@
config monitor
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

@@ -0,0 +1,29 @@
#!/bin/sh /etc/rc.common
#
# Start the imonitor
#
START=99
STOP=01
USE_PROCD=1
NAME=imonitor
start_service() {
procd_open_instance
procd_set_param command "imonitor"
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param respawn
procd_close_instance
}
stop() {
service_stop imonitor
}
reload_service() {
stop
start
}

View File

@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=inteno-netmodes
PKG_VERSION:=0.2.0
PKG_SOURCE_VERSION:=f6ad4becd96f9856f900cb9cdbdad730198b24e9
PKG_SOURCE_VERSION:=fbd7dcfab03df19b3c32675940e0aee708c7cf75
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=http://public.inteno.se:/netmoded

View File

@@ -6,6 +6,7 @@
. /lib/functions/network.sh
. /lib/functions/netmode.sh
network_flush_cache
network_get_ipaddr ipaddr $INTERFACE
[ -z "$ipaddr" ] && exit
@@ -16,11 +17,13 @@ if [ "$(netmode_get_ip_type $ipaddr)" == "private" ]; then
if [ "$repeaterready" == "1" -o "${curmode:0:8}" == "repeater" ]; then
# flush the ip on br-lan; br-lan will anyhow be deleted.
# this is needed if the ip received on the wan is also from the same net
logger -s -p user.info -t $0: [netmode] ip addr flush dev br-lan >/dev/console
ip addr flush dev br-lan 2>/dev/null
# flush iptables in case the MASTER
# tries to configure us before
# firewall is disabled the proper way
logger -s -p user.info -t $0: [netmode] iptables -F >/dev/console
iptables -F
disable_firewall 1

View File

@@ -13,7 +13,10 @@ case "$(uci get netmode.setup.curmode)" in
repeater*)
;;
*)
ping -c 1 -w 5 $defroute >/dev/null 2>&1 || killall -USR1 udhcpc
ping -c 1 -w 5 $defroute >/dev/null 2>&1 || {
logger -s -t "80-repeater" "ping to $defroute failed, sending USR1 to udhcpc" >/dev/console
killall -USR1 udhcpc
}
exit
;;
esac

View File

@@ -12,7 +12,7 @@ start_netmoded() {
procd_open_instance
procd_set_param command $NETMODED
procd_append_param command --verbose debug
procd_append_param command --verbose warning
procd_set_param stdout 1
procd_set_param stderr 1

View File

@@ -12,7 +12,7 @@
"CG300",
"CG301",
"EX400",
"SDX*"
"SDX810-AP"
],
"acl" : [
"admin",

View File

@@ -28,10 +28,39 @@ config interface 'iptv'
option proto 'dhcp'
option gateway '0.0.0.0'
option reqopts 'staticroutes'
option ifname 'ptm0.100 atm1.1 $WAN.100 $LAN4'
option ifname 'ptm0.100 $WAN.100 $LAN4'
option defaultroute '0'
config interface 'wan6'
option proto 'dhcpv6'
option ifname '@wan'
config device 'atmwan'
option type 'untagged'
option ifname 'atm0'
option name 'atm0.1'
config device 'ptmwan'
option type 'untagged'
option ifname 'ptm0'
option name 'ptm0.1'
config device 'ethwan'
option type 'untagged'
option ifname '$WAN'
option name '$WAN.1'
config device 'ethtv'
option type '8021q'
option name '$WAN.100'
option ifname '$WAN'
option vid '100'
option priority '0'
config device 'ptmtv'
option type '8021q'
option name 'ptm0.100'
option ifname 'ptm0'
option vid '100'
option priority '0'

View File

@@ -51,6 +51,7 @@ config wifi-iface
option wps_pbc '1'
option wmf_bss_enable '1'
option bss_max '32'
option ifname 'wl0'
config wifi-device 'wl1'
option type 'broadcom'
@@ -90,4 +91,5 @@ config wifi-iface
option wps_pbc '1'
option wmf_bss_enable '1'
option bss_max '32'
option ifname 'wl1'

View File

@@ -13,7 +13,7 @@
"CG301",
"EX400",
"F*",
"SDX*"
"SDX810-AP"
],
"acl" : [
"admin",

View File

@@ -28,7 +28,7 @@ config interface 'iptv'
option proto 'dhcp'
option gateway '0.0.0.0'
option reqopts 'staticroutes'
option ifname 'ptm0.100 atm1.1 $WAN.100 $LAN4'
option ifname 'ptm0.100 $WAN.100 $LAN4'
option defaultroute '0'
config interface 'voip'
@@ -36,10 +36,53 @@ config interface 'voip'
option proto 'dhcp'
option gateway '0.0.0.0'
option reqopts 'staticroutes'
option ifname 'ptm0.200 atm2.1 $WAN.200'
option ifname 'ptm0.200 $WAN.200'
option defaultroute '0'
config interface 'wan6'
option proto 'dhcpv6'
option ifname '@wan'
config device 'atmwan'
option type 'untagged'
option ifname 'atm0'
option name 'atm0.1'
config device 'ptmwan'
option type 'untagged'
option ifname 'ptm0'
option name 'ptm0.1'
config device 'ethwan'
option type 'untagged'
option ifname '$WAN'
option name '$WAN.1'
config device 'ethtv'
option type '8021q'
option name '$WAN.100'
option ifname '$WAN'
option vid '100'
option priority '0'
config device 'ptmtv'
option type '8021q'
option name 'ptm0.100'
option ifname 'ptm0'
option vid '100'
option priority '0'
config device 'ethvoip'
option type '8021q'
option name '$WAN.200'
option ifname '$WAN'
option vid '200'
option priority '0'
config device 'ptmvoip'
option type '8021q'
option name 'ptm0.200'
option ifname 'ptm0'
option vid '200'
option priority '0'

View File

@@ -51,6 +51,7 @@ config wifi-iface
option wps_pbc '1'
option wmf_bss_enable '1'
option bss_max '32'
option ifname 'wl0'
config wifi-device 'wl1'
option type 'broadcom'
@@ -90,4 +91,5 @@ config wifi-iface
option wps_pbc '1'
option wmf_bss_enable '1'
option bss_max '32'
option ifname 'wl1'

View File

@@ -12,6 +12,7 @@
"DG40*",
"EG40*",
"EX40*",
"SDX*",
"F*"
],
"uplink_band" : "b",

View File

@@ -1,6 +0,0 @@
config ethernet_interface 'Wan'
option baseifname '$WAN'
option ifname '$WAN.1'
option name 'WAN'
option bridge '1'

View File

@@ -13,3 +13,8 @@ config interface 'wan'
option ifname '$WAN.1 $LAN1 $LAN2 $LAN3 $LAN4'
option reqopts '43'
config device 'ethwan'
option type 'untagged'
option ifname '$WAN'
option name '$WAN.1'

View File

@@ -51,7 +51,7 @@ config wifi-iface
option wps_pbc '1'
option wmf_bss_enable '1'
option bss_max '32'
option autoconf '1'
option ifname 'wl0'
config wifi-device 'wl1'
option type 'broadcom'
@@ -89,5 +89,5 @@ config wifi-iface
option cipher 'auto'
option wps_pbc '0'
option wmf_bss_enable '1'
option autoconf '1'
option ifname 'wl1'

View File

@@ -12,6 +12,7 @@
"DG40*",
"EG40*",
"EX40*",
"SDX*",
"F*"
],
"uplink_band" : "b",

View File

@@ -1,6 +0,0 @@
config ethernet_interface 'Wan'
option baseifname '$WAN'
option ifname '$WAN.1'
option name 'WAN'
option bridge '1'

View File

@@ -13,3 +13,8 @@ config interface 'wan'
option ifname '$WAN.1 $LAN1 $LAN2 $LAN3 $LAN4'
option reqopts '43'
config device 'ethwan'
option type 'untagged'
option ifname '$WAN'
option name '$WAN.1'

View File

@@ -51,7 +51,7 @@ config wifi-iface
option wps_pbc '1'
option wmf_bss_enable '1'
option bss_max '32'
option autoconf '1'
option ifname 'wl0'
config wifi-device 'wl1'
option type 'broadcom'
@@ -104,5 +104,5 @@ config wifi-iface
option wps_pbc '1'
option wmf_bss_enable '1'
option bss_max '32'
option autoconf '1'
option ifname 'wl1'

View File

@@ -7,6 +7,7 @@ config interface 'loopback'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '$MACLAN'
option vid 1
config interface 'wan'
option type 'bridge'
@@ -19,6 +20,7 @@ config interface 'wan'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '$MACWAN'
option vid 2
config interface 'wan6'
option ifname '@wan'

View File

@@ -7,6 +7,7 @@ config interface 'loopback'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '$MACLAN'
option vid 1
config interface 'wan'
option type 'bridge'
@@ -19,6 +20,7 @@ config interface 'wan'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '$MACWAN'
option vid 2
config interface 'wan6'
option ifname '@wan'

View File

@@ -8,7 +8,8 @@
{ "sv" : "" }
],
"excluded_boards" : [
"EX4*"
"EX4*",
"SDX810-AP"
],
"credentials" : 0
}

View File

@@ -1,13 +0,0 @@
config atm_bridge
option link_type 'EoA'
option encapseoa 'llcsnap_eth'
option unit '0'
option ifname 'atm0.1'
option baseifname 'atm0'
option atmtype 'ubr'
option name 'atm_inet'
option vpi '8'
option vci '35'

View File

@@ -1,5 +0,0 @@
config ethernet_interface 'Wan'
option baseifname '$WAN'
option ifname '$WAN.1'
option name 'WAN'

View File

@@ -1,9 +0,0 @@
config vdsl_interface
option unit '0'
option ifname 'ptm0.1'
option baseifname 'ptm0'
option name 'VDSL2'
option dslat '1'
option ptmprio '1'
option ipqos '1'

View File

@@ -27,3 +27,18 @@ config interface 'wan6'
option proto 'dhcpv6'
option ifname '@wan'
config device 'atmwan'
option type 'untagged'
option ifname 'atm0'
option name 'atm0.1'
config device 'ptmwan'
option type 'untagged'
option ifname 'ptm0'
option name 'ptm0.1'
config device 'ethwan'
option type 'untagged'
option ifname '$WAN'
option name '$WAN.1'

View File

@@ -51,6 +51,7 @@ config wifi-iface
option wps_pbc '1'
option wmf_bss_enable '1'
option bss_max '32'
option ifname 'wl0'
config wifi-device 'wl1'
option type 'broadcom'
@@ -90,4 +91,5 @@ config wifi-iface
option wps_pbc '1'
option wmf_bss_enable '1'
option bss_max '32'
option ifname 'wl1'

View File

@@ -16,6 +16,7 @@ config interface 'lan'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '$MACLAN'
option vid 1
config interface 'wan'
option ifname 'eth0.2'
@@ -27,6 +28,7 @@ config interface 'wan'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '$MACWAN'
option vid 2
config interface 'wan6'
option ifname '@wan'

View File

@@ -27,6 +27,7 @@ config wifi-iface
option encryption psk2
option key $WPAKEY
option wps_pbc 1
option ifname ra0
config wifi-device rai0
option band a
@@ -45,4 +46,5 @@ config wifi-iface
option encryption psk2
option key $WPAKEY
option wps_pbc 1
option ifname rai0

View File

@@ -8,9 +8,8 @@ OLD_MODE_FILE=/var/netmodes/old_mode
SWITCHMODELOCK="/tmp/switching_mode"
MODEDIR=$(uci -q get netmode.setup.dir)
MTK=0
case "$(db -q get hw.board.hardware)" in
EX400|SDX_500AP) MTK=1 ;;
esac
opkg list-installed | grep -q kmod-mt.*mtk && MTK=1
[ -n "$MODEDIR" ] || MODEDIR="/etc/netmodes"
@@ -156,26 +155,23 @@ switch_netmode() {
echo $curmode >$OLD_MODE_FILE
[ -d "/etc/netmodes/$curmode" ] || return
logger -s -p user.info -t $0 "[netmode] Copying /etc/netmodes/$curmode in /etc/config" >/dev/console
cp /etc/netmodes/$curmode/* /etc/config/
rm -f /etc/config/DETAILS
sync
local reboot=$(uci -q get netmode.$curmode.reboot)
if [ "$reboot" == "1" ]; then
if [ "$reboot" != "0" ]; then
reboot &
exit
fi
/etc/init.d/environment reload
case "$curmode" in
routed*)
[ -f /etc/init.d/layer2 ] && /etc/init.d/layer2 reload
ubus call uci commit '{"config":"network"}'
;;
repeater*)
touch $SWITCHMODELOCK
echo "Switching to $curmode mode" > /dev/console
logger -s -p user.info -t $0 "Switching to $curmode mode" > /dev/console
ubus call leds set '{"state" : "allflash"}'
[ -f /etc/init.d/omcproxy ] && /etc/init.d/omcproxy stop
[ -f /etc/init.d/layer2 ] && /etc/init.d/layer2 reload
@@ -187,6 +183,10 @@ switch_netmode() {
ubus call leds set '{"state" : "normal"}'
rm -f $SWITCHMODELOCK
;;
*)
[ -f /etc/init.d/layer2 ] && /etc/init.d/layer2 reload
ubus call uci commit '{"config":"network"}'
;;
esac
}
@@ -223,7 +223,13 @@ wait_for_netmode_handler() {
}
netmode_get_ip_type() {
[ -n "$(echo $1 | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)')" ] && echo "private" || echo "public"
[ -n "$(echo $1 | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)')" ] && {
logger -t "[netmode]" "netmode_get_ip_type: ip $1 is private"
echo "private"
} || {
logger -t "[netmode]" "netmode_get_ip_type: ip $1 is public"
echo "public"
}
}
get_device_of() {
@@ -402,6 +408,7 @@ start_netmode_tools() {
config_get_bool repeaterready setup repeaterready 0
[ $repeaterready -eq 1 ] && {
/sbin/netmode-discover &
/sbin/wificontrol --repeater &
return
}

View File

@@ -51,7 +51,7 @@ while true ; do
json_get_var network network "lan"
if is_inteno_macaddr $macaddr; then
echo "netmode-client-detect: a new Inteno device detected on '$network' network (MACAddr:$macaddr IPAddr:$ipaddr)" >/dev/console
logger -s -p user.info -t $0 "netmode-client-detect: a new Inteno device detected on '$network' network (MACAddr:$macaddr IPAddr:$ipaddr)" >/dev/console
ubus call repeater get_creds '{"network":"'$network'","file":"/tmp/wificontrol.txt"}'
/sbin/wificontrol --router --destination $ipaddr
fi

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

@@ -21,9 +21,14 @@ mask_to_cidr() {
}
while true; do
[ -e /sys/class/net/br-wan ] || {
sleep 5
continue
}
unlisted=0
ps | grep -q wifi | grep -q reload || {
ps | grep wifi | grep -q reload || {
for mac in $(brctl showmacs br-wan 2>/dev/null | tail -n +2 | grep no | awk '{print$2}'); do
grep -q "$mac" /proc/net/arp || unlisted=$((unlisted+1))
done
@@ -33,10 +38,10 @@ while true; do
mask=$(mask_to_cidr $netmask)
}
if [ $unlisted -gt 0 -a -n "$ipaddr" -a -n "$netmask" ]; then
if [ $unlisted -gt 0 -a -n "$ipaddr" -a -n "$netmask" -a $mask -ge 24 ]; then
fping -c 1 -t 1000 -g $ipaddr/$mask -q >/dev/null 2>&1
fi
sleep 20
sleep 30
done

View File

@@ -0,0 +1,3 @@
#!/bin/sh
netmode-conf "$1" "$2" &

View File

@@ -7,6 +7,7 @@ TVCON=0
WANIP=0
LASTSTATUS=""
CURSTATUS=""
ETHWAN="$(db -q get hw.board.ethernetWanPort)"
SLEEP_TIME=30
enableCounter=0
@@ -48,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 1 -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
@@ -57,7 +58,6 @@ ping_uplink()
fi
if [ $rv -eq 0 ]; then
echo "{ \"online\" : false }" > /tmp/internet_connection_status
SLEEP_TIME=10
@@ -65,11 +65,14 @@ ping_uplink()
wetif="$(uci -q get wireless.$(uci show wireless | grep 'mode=.*wet.*' | cut -d'.' -f2 | head -1).ifname)"
# If there is an uplink IP address but no connection for 5 minutes, reboot
if [ $enableCounter -gt 32 ]; then
logger -s -p user.info -t "testnet" "No uplink connection; reboot" >/dev/console
ubus call led.internet set '{"state" : "error"}'
reboot &
elif [ $((enableCounter % 2)) -eq 0 -a $enableCounter -ge 2 -o $enableCounter -eq 0 ]; then
elif [ $((enableCounter % 8)) -eq 0 -a $enableCounter -ge 8 -o $enableCounter -eq 0 ]; then
ps | grep -v grep | grep -q 'wifi reload\|wifi import\|wifi.credentials\|iwpriv' && return
logger -s -p user.info -t "testnet" "No uplink connection; try to re-connect" >/dev/console
if [ -f /usr/sbin/wlctl ]; then
assoclist="$(wlctl -i $wetif assoclist | head -1 | awk '{print$2}')"
wlctl -i $wetif reassoc $assoclsit
@@ -93,13 +96,13 @@ ping_uplink()
iwpriv $wetif set ApCliAutoConnect=1
fi
ubus call led.internet set '{"state" : "notice"}'
touch /tmp/netmodes/repeater_trying_to_connect
else
if [ -f /tmp/netmodes/repeater_trying_to_connect ]; then
rm -f /tmp/netmodes/repeater_trying_to_connect
else
ubus call led.internet set '{"state" : "error"}'
fi
# touch /tmp/netmodes/repeater_trying_to_connect
# else
# if [ -f /tmp/netmodes/repeater_trying_to_connect ]; then
# rm -f /tmp/netmodes/repeater_trying_to_connect
# else
# ubus call led.internet set '{"state" : "error"}'
# fi
fi
enableCounter=$((enableCounter+1))
@@ -110,16 +113,20 @@ ping_uplink()
AccessPolicy=1
if [ -f /usr/sbin/iwpriv ]; then
# Do not allow clients to connect on 2.4GHz radio
iwpriv ra0 set AccessPolicy=$AccessPolicy
# Do not allow clients to connect on 5GHz radio
iwpriv rai0 set AccessPolicy=$AccessPolicy
# Disconnect clients on 2.4GHz radio
iwpriv ra0 set DisConnectAllSta=2
# Disconnect clients on 5GHz radio
iwpriv rai0 set DisConnectAllSta=2
grep -q up /sys/class/net/$ETHWAN/operstate 2>/dev/null || {
logger -s -p user.info -t "testnet" "Disconnect all stations and disable WiFi access on downlink wireless interfaces" >/dev/console
# Do not allow clients to connect on 2.4GHz radio
iwpriv ra0 set AccessPolicy=$AccessPolicy
# Do not allow clients to connect on 5GHz radio
iwpriv rai0 set AccessPolicy=$AccessPolicy
# Disconnect clients on 2.4GHz radio
iwpriv ra0 set DisConnectAllSta=2
# Disconnect clients on 5GHz radio
iwpriv rai0 set DisConnectAllSta=2
}
fi
else
else
grep -q "true" /tmp/internet_connection_status 2>/dev/null || logger -s -p user.info -t "testnet" "Uplink connection is gained" >/dev/console
echo "{ \"online\" : true }" > /tmp/internet_connection_status
ubus call led.internet set '{"state" : "eok"}'
@@ -133,10 +140,10 @@ ping_uplink()
AccessPolicy=0
if [ -f /usr/sbin/iwpriv ]; then
logger -s -p user.info -t "testnet" "Enable WiFi access on downlink wireless interfaces" >/dev/console
iwpriv ra0 set AccessPolicy=$AccessPolicy
iwpriv rai0 set AccessPolicy=$AccessPolicy
fi
fi
}
@@ -160,11 +167,10 @@ test_connection() {
}
wan_have_ip() {
[ -d /sys/class/net/$port ] || return
[ -d /sys/class/net/$ETHWAN ] || return
ubus list led.wan >/dev/null 2>&1 || return
local port="$(db -q get hw.board.ethernetWanPort)"
local addr=$(ip a show dev $port | grep "inet "| awk '{print $2}')
local addr=$(ip a show dev $ETHWAN | grep "inet "| awk '{print $2}')
if [ -n "$addr" ]; then
WANIP=1

View File

@@ -129,12 +129,12 @@ case "$1" in
json_load "`cat $file`" || write_error "invalid file content"
json_select "wifi_ifaces" || write_error "invalid file content"
start-netmode-conf "$file" "$from_gui" >/dev/null 2>/dev/null
json_init
json_add_string "status" success
json_dump
netmode-conf "$file" "$from_gui" >/dev/null 2>&1 &
;;
esac
;;

7
iop-lla-libs/Config.in Normal file
View File

@@ -0,0 +1,7 @@
menu "Library options"
config IOP_LLA_LIBS_DEBUG
bool "Enable debug support"
default n
endmenu

131
iop-lla-libs/Makefile Normal file
View File

@@ -0,0 +1,131 @@
#
# Copyright (C) 2018 Iopsys
#
include $(TOPDIR)/rules.mk
PKG_NAME:=iop-lla-libs
PKG_VERSION:=1.0.0
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=cf38a6165251709c0d60b33eafd7f32dcc0675d7
PKG_SOURCE_URL:=http://public.inteno.se:/iop-lla-libs
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@inteno.se>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/iop-lla-libs
SECTION:=libs
CATEGORY:=Libraries
SUBMENU:=IOPSYS low level libraries
DEPENDS:=+libopenssl
endef
define Package/libwifi
$(call Package/iop-lla-libs)
TITLE:= WiFi library (libwifi)
endef
define Package/libdsl
$(call Package/iop-lla-libs)
TITLE:= XDSL library (libdsl)
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
source "$(SOURCE)/Config.in"
endef
ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_mips),y)
TARGET_PLATFORM=BROADCOM
TARGET_CFLAGS +=-DIOPSYS_BROADCOM -DCONFIG_BCM963138
KERNEL_DIR:=$(BUILD_DIR)/bcmkernel/bcm963xx
else ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y)
TARGET_PLATFORM=BROADCOM
TARGET_CFLAGS +=-DIOPSYS_BROADCOM -DCONFIG_BCM963138
else ifeq ($(CONFIG_TARGET_iopsys_ramips),y)
TARGET_PLATFORM=MEDIATEK
TARGET_CFLAGS +=-DIOPSYS_MEDIATEK
else ifeq ($(CONFIG_TARGET_iopsys_linksys),y)
TARGET_PLATFORM=MARVELL
TARGET_CFLAGS +=-DIOPSYS_MARVELL
else ifeq ($(CONFIG_TARGET_lantiq_xrx500),y)
TARGET_PLATFORM=LANTIQ
TARGET_CFLAGS +=-DIOPSYS_LANTIQ
else
$(info (UNEXPECTED CONFIG TARGET))
endif
ifdef CONFIG_IOP_LLA_LIBS_DEBUG
TARGET_CFLAGS += -DIOP_LLA_LIBS_DEBUG
endif
subdirs := \
$(if $(CONFIG_PACKAGE_libwifi),libwifi) \
$(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)" \
FPIC="$(FPIC)" \
PLATFORM="$(TARGET_PLATFORM)" \
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/
$(CP) $(PKG_BUILD_DIR)/libwifi/libwifi.so* $(1)/usr/lib/
endef
define Build/InstallDev/libdsl
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libdsl/xdsl.h $(1)/usr/include/
$(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
define Package/libwifi/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libwifi/libwifi.so* $(1)/usr/lib/
endef
define Package/libethernet/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libethernet/libethernet.so* $(1)/usr/lib/
endef
define Package/libdsl/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libdsl/libdsl.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libwifi))
$(eval $(call BuildPackage,libdsl))
$(eval $(call BuildPackage,libethernet))

View File

@@ -32,6 +32,7 @@ CONFIG_PACKAGE_ice-client-netrounds=m
CONFIG_PACKAGE_ice-client-rshell=m
CONFIG_PACKAGE_ice-client-texec=m
CONFIG_PACKAGE_icwmp-curl=y
CONFIG_PACKAGE_imonitor=y
CONFIG_PACKAGE_inbd=y
CONFIG_PACKAGE_inteno-netmodes=y
CONFIG_PACKAGE_iperf-mt=y
@@ -43,35 +44,34 @@ CONFIG_PACKAGE_iptables-mod-ipopt=y
CONFIG_PACKAGE_iup=y
CONFIG_PACKAGE_iwatchdog=y
CONFIG_PACKAGE_juci=y
CONFIG_PACKAGE_juci-broadcom-dsl=y
CONFIG_PACKAGE_juci-broadcom-ethernet=y
CONFIG_PACKAGE_juci-broadcom-iptv=y
CONFIG_PACKAGE_juci-broadcom-pwrmgmt=y
CONFIG_PACKAGE_juci-broadcom-vlan=y
CONFIG_PACKAGE_juci-wireless=y
CONFIG_PACKAGE_juci-broadcom-xdsl=y
CONFIG_PACKAGE_juci-ddns=y
CONFIG_PACKAGE_juci-diagnostics=y
CONFIG_PACKAGE_juci-dnsmasq-dhcp=y
CONFIG_PACKAGE_juci-dropbear=y
CONFIG_PACKAGE_juci-ethernet=y
CONFIG_PACKAGE_juci-event=y
CONFIG_PACKAGE_juci-firewall-fw3=y
CONFIG_PACKAGE_juci-ice-client=y
CONFIG_PACKAGE_juci-icwmp=y
CONFIG_PACKAGE_juci-igmpinfo=y
CONFIG_PACKAGE_juci-inteno-backup=y
CONFIG_PACKAGE_juci-config-backup=y
CONFIG_PACKAGE_juci-mwan3=y
CONFIG_PACKAGE_juci-inteno-provisioning=y
# CONFIG_PACKAGE_juci-inteno-qos is not set
CONFIG_PACKAGE_juci-inteno-voice-client=y
CONFIG_PACKAGE_juci-iup=y
# CONFIG_PACKAGE_juci-qos is not set
CONFIG_PACKAGE_juci-voice-client=y
CONFIG_PACKAGE_juci-macdb=y
CONFIG_PACKAGE_juci-minidlna=y
CONFIG_PACKAGE_juci-mod-status=y
CONFIG_PACKAGE_juci-mod-system=y
CONFIG_PACKAGE_juci-natalie-dect=y
CONFIG_PACKAGE_juci-netmode=y
CONFIG_PACKAGE_juci-network-device=y
CONFIG_PACKAGE_juci-network-dsl=y
CONFIG_PACKAGE_juci-network-netifd=y
CONFIG_PACKAGE_juci-network-port=y
CONFIG_PACKAGE_juci-openvpn=y
CONFIG_PACKAGE_juci-owsd=y
CONFIG_PACKAGE_juci-printer=y
CONFIG_PACKAGE_juci-realtime-graphs=y
@@ -87,7 +87,6 @@ CONFIG_PACKAGE_juci-utils=y
# CONFIG_PACKAGE_kmod-ipt-nathelper is not set
CONFIG_PACKAGE_kmod-nls-base=y
CONFIG_PACKAGE_kmod-siit=y
CONFIG_PACKAGE_layer2interface=y
CONFIG_PACKAGE_libcgroup-daemon=y
CONFIG_PACKAGE_libcgroup=y
# CONFIG_PACKAGE_libcgroup-utils is not set
@@ -115,12 +114,12 @@ CONFIG_PACKAGE_openssl-util=y
CONFIG_OPENSSL_WITH_COMPRESSION=y
CONFIG_PACKAGE_openvpn-easy-rsa=y
CONFIG_PACKAGE_openvpn-openssl=y
CONFIG_PACKAGE_p910nd=y
# CONFIG_PACKAGE_p910nd is not set
CONFIG_PACKAGE_peripheral_manager=y
CONFIG_PACKAGE_port-management=y
CONFIG_PACKAGE_power-management=y
CONFIG_PACKAGE_ppp-mod-pppoa=y
# CONFIG_PACKAGE_ppp-mod-pppoe is not set
CONFIG_PACKAGE_ppp-mod-pppoe=y
CONFIG_PACKAGE_ppp-mod-pppol2tp=y
CONFIG_PACKAGE_ppp-mod-pptp=y
CONFIG_PACKAGE_ppp-multilink=y
@@ -132,6 +131,7 @@ CONFIG_PACKAGE_rdnssd=y
CONFIG_PACKAGE_relayd=y
CONFIG_PACKAGE_resolveip=y
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rulengd=y
CONFIG_PACKAGE_samba3=y
CONFIG_PACKAGE_samba3-nmbd=y
CONFIG_PACKAGE_snmpd=y
@@ -157,6 +157,7 @@ CONFIG_TARGET_ROOTFS_TARGZ=y
CONFIG_USE_STRIP=y
CONFIG_BUILD_LOG=y
CONFIG_BUSYBOX_CONFIG_ADDUSER=y
CONFIG_BUSYBOX_CONFIG_ARPING=y
CONFIG_BUSYBOX_CONFIG_ASH_RANDOM_SUPPORT=y
CONFIG_BUSYBOX_CONFIG_CTTYHACK=y
CONFIG_BUSYBOX_CONFIG_DELUSER=y
@@ -212,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

@@ -0,0 +1,15 @@
# CONFIG_PACKAGE_libcgroup-daemon is not set
# CONFIG_PACKAGE_libcgroup is not set
# CONFIG_PACKAGE_juci-broadcom-wl is not set
# CONFIG_PACKAGE_juci-minisnmpd is not set
# CONFIG_PACKAGE_juci-router-openwrt is not set
# CONFIG_PACKAGE_speedsvc is not set
# CONFIG_juci_broadcom_wl is not set
# CONFIG_juci_minisnmpd is not set
# CONFIG_juci_router_openwrt is not set
# CONFIG_PACKAGE_brcminfo is not set
CONFIG_PACKAGE_brcm_fw_tool=y

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,6 @@
# 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

@@ -0,0 +1,6 @@
# 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

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

View File

@@ -0,0 +1,3 @@
CONFIG_TARGET_NO_DSL=y
CONFIG_BCM_I2C=y

View File

@@ -0,0 +1,16 @@
# CONFIG_PACKAGE_libcgroup-daemon is not set
# CONFIG_PACKAGE_libcgroup is not set
# CONFIG_PACKAGE_natalie-dect is not set
# CONFIG_PACKAGE_juci-broadcom-wl is not set
# CONFIG_PACKAGE_juci-minisnmpd is not set
# CONFIG_PACKAGE_juci-router-openwrt is not set
# CONFIG_PACKAGE_speedsvc is not set
# CONFIG_juci_broadcom_wl is not set
# CONFIG_juci_minisnmpd is not set
# CONFIG_juci_router_openwrt is not set
# CONFIG_PACKAGE_brcminfo is not set
CONFIG_PACKAGE_brcm_fw_tool=y

View File

@@ -0,0 +1,3 @@
CONFIG_BCM_I2C=y
CONFIG_TARGET_NO_DECT=y

View File

@@ -0,0 +1,3 @@
CONFIG_TARGET_NO_VOICE=y
CONFIG_BCM_I2C=y

View File

@@ -0,0 +1,2 @@
CONFIG_BCM_I2C=y

View File

@@ -0,0 +1,3 @@
CONFIG_TARGET_NO_VOICE=y
CONFIG_BCM_I2C=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

@@ -0,0 +1,3 @@
CONFIG_TARGET_NO_DSL=y
CONFIG_BCM_I2C=y

View File

@@ -0,0 +1,4 @@
CONFIG_TARGET_NO_DHD=y
CONFIG_TARGET_NO_VOICE=y
CONFIG_BCM_I2C=y

View File

@@ -0,0 +1,14 @@
# CONFIG_PACKAGE_libcgroup-daemon is not set
# CONFIG_PACKAGE_libcgroup is not set
# CONFIG_PACKAGE_power-management is not set
# CONFIG_PACKAGE_qos-scripts is not set
# CONFIG_PACKAGE_mtd-utils-deubinize is not set
# CONFIG_PACKAGE_mtd-utils-imagewrite is not set
# CONFIG_PACKAGE_mtd-utils-mkfs.jffs2 is not set
# CONFIG_PACKAGE_mtd-utils-nanddump is not set
CONFIG_PACKAGE_mtd-utils-nandwrite=y
CONFIG_PACKAGE_mtk-bndstrg=y
CONFIG_PACKAGE_omcproxy=y
CONFIG_PACKAGE_kmod-nf-nathelper=y
CONFIG_PACKAGE_kmod-nf-nathelper-extra=y
# CONFIG_PACKAGE_endptmngr is not set

View File

@@ -36,7 +36,7 @@ _iop()
feeds_update genconfig generate_tarballs install_key \
scp_changes setup_host ssh_install_key ssh_sysupgrade \
ssh_sysupgrade_latest ssh_sysupgrade_latest_w status \
update_package"
update_package update_feed_branches"
if [ $COMP_CWORD -eq 1 ] ; then

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"

60
iop/scripts/build_branch.sh Executable file
View File

@@ -0,0 +1,60 @@
#!/bin/sh
# build_branch
#./iop build_branch <branch> <board> [<customer>]
function build_branch_usage {
echo "usage: $0 build_branch <branch> <board> [<customer>]"
echo "example: $0 build_branch devel-new ex400 DEV"
echo "example: $0 build_branch_sysupgrade devel-new ex400 DEV 192.168.1.1 -n"
set +x
exit 1
}
function branch_exists {
local branch=$1
[ -z "$branch" ] && return 1
git branch | grep -q $branch && return 0
return 1
}
function build_branch {
set -x
local branch=$1
local board=$2
local customer=$3
[ "$customer" == "INT" ] && customer=""
if ! branch_exists $branch ; then
echo "Branch $branch not found"
build_branch_usage
fi
time {
git fetch origin || build_branch_usage
git fetch --all -p || build_branch_usage
git checkout $branch || build_branch_usage
git pull || exit 1
./iop feeds_update || build_branch_usage
./iop genconfig -c $board $customer || build_branch_usage
make -j 8 || build_branch_usage
set +x
}
}
function build_branch_sysupgrade {
set -x
local branch=$1 ; shift
local board=$1 ; shift
local customer=$1 ; shift
local ip=$1 ; shift
local opts=$*
time {
./iop build_branch $branch $board $customer
[ "$?" == "0" ] && ./iop ssh_sysupgrade_latest $ip $opts
}
set +x
}
register_command "build_branch" "<branch> <board> [<customer>] Build a <branch> for a <board> [with a <customer> profile]"
register_command "build_branch_sysupgrade" "<branch> <board> <customer>|INT <ip> [<opts>] Build a <branch> for a <board> [with a <customer> profile] and sysupgrade [with <opts>] it on the router at <ip>"

View File

@@ -14,9 +14,9 @@ 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_arm="dg400 eg400 f104w f104 dg400prime dg400primeb 963138REF_P502"
iopsys_ramips="ex400 sdx_500ap"
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"
target="bogus"
masterconfig=1
@@ -216,11 +216,15 @@ function genconfig {
cp $CONFIGPATH/config .config
fi
# Add target diff
local target_name=$(echo $target | sed 's/_/-/g')
local target_conf=target/linux/${target_name}/config
if [ -f $target_conf ]; then
cat $target_conf >> .config
# Add target (soc/board specific )
if [ -f $CONFIGPATH/target/config ]; then
cat $CONFIGPATH/target/config >> .config
fi
if [ -f $CONFIGPATH/target/$target/config ]; then
cat $CONFIGPATH/target/$target/config >> .config
fi
if [ -f $CONFIGPATH/target/$target/$BOARDTYPE/config ]; then
cat $CONFIGPATH/target/$target/$BOARDTYPE/config >> .config
fi
# Apply profile diff to master config if selected

View File

@@ -4,7 +4,8 @@
build_bcmkernel_consumer() {
local tarfile bcmkernelcommith sdkversion
sdkversion=$(grep "CONFIG_BRCM_SDK_VER.*=y" .config | awk -F'[_,=]' '{print$5}')
bcmkernelcommith=$(grep -w "PKG_SOURCE_VERSION:" $curdir/feeds/feed_inteno_broadcom/bcmkernel/${sdkversion:0:4}*.mk | cut -d'=' -f2)
sdkversion=${sdkversion:0:4}${sdkversion:(-1)}
bcmkernelcommith=$(grep -w "PKG_SOURCE_VERSION:" $curdir/feeds/feed_inteno_broadcom/bcmkernel/${sdkversion:0:5}*.mk | cut -d'=' -f2)
# do not build bcmopen sdk if it was already built before
[ -n "$board" -a -n "$bcmkernelcommith" ] || return
ssh $SERVER "ls $FPATH/bcmopen-$board-$bcmkernelcommith.tar.gz" && return
@@ -13,6 +14,7 @@ build_bcmkernel_consumer() {
tarfile='out/bcm963xx_*_consumer.tar.gz'
[ $(ls -1 $tarfile |wc -l) -ne 1 ] && echo "Too many tar files: '$tarfile'" && return
scp $tarfile $SERVER:$FPATH/bcmopen-$board-$bcmkernelcommith.tar.gz
ssh $SERVER "ln -s $FPATH/bcmopen-$board-$bcmkernelcommith.tar.gz $FPATH/bcmopen-$board-$majver.$minver.tar.gz"
rm -f $tarfile
cd $curdir
}
@@ -36,22 +38,24 @@ build_natalie_consumer() {
cd $curdir
}
build_endptcfg_consumer() {
# create endptcfg open version tar file
build_endptmngr_consumer() {
# create endptmngr open version tar file
local endptversion endptcommith
grep -q "CONFIG_TARGET_NO_VOICE=y" .config && return
endptversion=$(grep -w "PKG_VERSION:" ./feeds/feed_inteno_packages/endptcfg/Makefile | cut -d'=' -f2)
endptcommith=$(grep -w "PKG_SOURCE_VERSION:" ./feeds/feed_inteno_packages/endptcfg/Makefile | cut -d'=' -f2)
endptversion=$(grep -w "PKG_VERSION:" ./feeds/feed_inteno_packages/endptmngr/Makefile | cut -d'=' -f2)
endptcommith=$(grep -w "PKG_SOURCE_VERSION:" ./feeds/feed_inteno_packages/endptmngr/Makefile | cut -d'=' -f2)
[ -n "$profile" -a -n "$endptversion" -a -n "$endptcommith" ] || return
ssh $SERVER "ls $FPATH/endptcfg-$profile-$endptversion-$endptcommith.tar.gz" && return
cd ./build_dir/target-*/endptcfg-$endptversion/
mkdir endptcfg-open-$endptversion
cp endptcfg endptcfg-open-$endptversion/
tar -czv endptcfg-open-$endptversion/ -f endptcfg-$profile-$endptversion-$endptcommith.tar.gz
scp endptcfg-$profile-$endptversion-$endptcommith.tar.gz $SERVER:$FPATH/
cp endptcfg-$profile-$endptversion-$endptcommith.tar.gz $curdir/
rm -rf endptcfg-open-$endptversion
rm -f endptcfg-$profile-$endptversion-$endptcommith.tar.gz
ssh $SERVER "ls $FPATH/endptmngr-$profile-$endptversion-$endptcommith.tar.gz" && return
cd ./build_dir/target-*/endptmngr-$endptversion/
mkdir endptmngr-open-$endptversion
mkdir endptmngr-open-$endptversion/src
cp ./src/endptmngr endptmngr-open-$endptversion/src
cp -r ./files/ endptmngr-open-$endptversion/
tar -czv endptmngr-open-$endptversion/ -f endptmngr-$profile-$endptversion-$endptcommith.tar.gz
scp endptmngr-$profile-$endptversion-$endptcommith.tar.gz $SERVER:$FPATH/
cp endptmngr-$profile-$endptversion-$endptcommith.tar.gz $curdir/
rm -rf endptmngr-open-$endptversion
rm -f endptmngr-$profile-$endptversion-$endptcommith.tar.gz
cd $curdir
}
@@ -82,7 +86,7 @@ build_mediatek_kernel() {
ssh $SERVER "ls $FPATH/mediatek-kernel-open-$mediatek_commit.tar.gz" && return
echo "Building mediatek kernel tarball from kernel commit:"
echo $mediatek_commit
cd build_dir/target-mipsel_1004kc*/linux-iopsys-ramips_*/$kernel
cd build_dir/target-mipsel_1004kc*/linux-iopsys-ramips*/$kernel
# Save Kconfig files to recreate the same kernel config,
# delete everyting else.
@@ -116,6 +120,8 @@ function generate_tarballs {
target=$(grep CONFIG_TARGET_BOARD .config | cut -d'=' -f2 | tr -d '"')
board=$(grep CONFIG_TARGET_IBOARDID .config | cut -d'=' -f2 | tr -d '"')
profile=$(grep CONFIG_BCM_KERNEL_PROFILE .config | cut -d'=' -f2 | tr -d '"')
majver=$(grep CONFIG_TARGET_VERSION .config | cut -d'=' -f2 | tr -d '"' | cut -f1 -d .)
minver=$(grep CONFIG_TARGET_VERSION .config | cut -d'=' -f2 | tr -d '"' | cut -f2 -d .)
curdir=$(pwd)
@@ -144,7 +150,7 @@ function generate_tarballs {
if [ "$stk_target" == "broadcom" ]; then
build_bcmkernel_consumer
build_natalie_consumer
build_endptcfg_consumer
build_endptmngr_consumer
build_ice_consumer
elif [ "$stk_target" == "mediatek" ]; then
build_mediatek_kernel

View File

@@ -22,7 +22,7 @@ function ssh_sysupgrade {
fi
IMAGE=`basename $2`
echo "sysupgrade host: $1 with file $IMAGE"
[ "$2" ] && [ -e "$2" ] && scp $2 root@$1:/tmp/ && ssh root@$1 "sysupgrade $3 /tmp/$IMAGE" && echo "sysupgrade done!"
[ "$2" ] && [ -e "$2" ] && scp $2 root@$1:/tmp/ && ssh -o ConnectTimeout=60 root@$1 "sysupgrade -v $3 /tmp/$IMAGE" && echo "sysupgrade done!"
}
register_command "ssh_sysupgrade" "<host> <file> [opts] Install firmware on remote host with SSH"

View File

@@ -0,0 +1,61 @@
#!/bin/sh
# Exported interface
function update_feed_branches {
local release="$1"
local ipath="$(pwd)"
local branch="$2"
local curbranch
[ -n "$release" ] || {
echo "Usage: ./update_feeds <RELEASE> <BRANCH>"
echo ""
echo "If you do not give a branch as argument,"
echo "<RELEASE> branch will be updated to commit"
echo "hash given in feeds.conf for each feed repo"
exit 1
}
if [ -n "$branch" ]; then
echo "Updating release branch $release to specific commit hash given in feeds.conf for each feed repo at branch $branch"
if git diff-index --quiet HEAD; then
curbranch=`git symbolic-ref HEAD 2>/dev/null`
curbranch=${curbranch##refs/heads/}
if [ -z $curbranch ]; then
curbranch=`git log -1 --pretty=format:"%H"`
fi
git checkout $branch || {
echo "couldn't checkout branch $branch"
exit 99
}
else
echo "You have unsaved changes."
exit 99
fi
else
echo "Updating release branch $release to specific commit hash given in feeds.conf for each feed repo"
fi
ifeeds="$(grep -r feed_inteno feeds.conf | awk '{print$2}' | cut -d'_' -f3 | tr '\n' ' ')"
for f in $ifeeds; do
commith=$(grep feed_inteno_$f feeds.conf | cut -d'^' -f2)
cd $ipath/feeds/feed_inteno_$f
git branch -D $release 2>/dev/null
echo "feed_inteno_$f: updating release branch $release to commit $commith"
git checkout $commith
git push origin :$release
git checkout -b $release
git push origin $release
cd $ipath
done
if [ -n "$branch" ]; then
echo "Release branch $release is updated to specific commit hash given in feeds.conf in in branch $branch for each feed repo"
git checkout $curbranch
else
echo "Release branch $release is updated to specific commit hash given in feeds.conf for each feed repo"
fi
}
register_command "update_feed_branches" "<release> [branch] Update branches in feeds from the current top level commit or specified top level branch"

View File

@@ -41,7 +41,7 @@ update_this_pkg()
echo " to get an up to date version in ${PKG_BUILD_DIR}/.git_update"
echo ""
echo -n " Shold we continue with the update anyway? [y/N]:"
echo -n " Should we continue with the update anyway? [y/N]:"
read answer
echo ""
@@ -184,7 +184,7 @@ branch_uptodate()
else
echo "Diverged. not sure what you did but there is no tracking branch. "
echo "repo at [ $1 ]. fix it so that there is a tracking branch remote."
echo "Often this is related to sombody having commited to the same branch"
echo "Often this is related to somebody having commited to the same branch"
echo "on the server so a simple push wont work, try a 'git rebase'."
exit 99
fi

View File

@@ -0,0 +1,57 @@
#!/bin/sh
. /lib/functions.sh
management_interfaces() {
local DHCP_IFACES=""
is_notbridged_dhcp() {
local config="$1"
local proto="$(uci -q get network.$config.proto)"
local typ="$(uci -q get network.$config.type)"
if [ "$proto" == "dhcp" -a "$typ" != "bridge" ]; then
DHCP_IFACES="$DHCP_IFACES $config"
fi
}
config_load network
config_foreach is_notbridged_dhcp interface
echo $DHCP_IFACES
}
set_iup_reqopts() {
### Ask for IUP related DHCP options only if IUP is enabled ###
new_reqopts() {
local net=$1
local enabled="$(uci -q get provisioning.iup.enabled)"
enabled="${enabled:-on}"
local newreqopts=
local baseopts=
local reqopts="$(uci -q get network.$net.reqopts)"
local iupopts="66 67 128 224 225 226"
local ropt iopt
local net
for ropt in $reqopts; do
case $ropt in
66|67|128|224|225|226) ;;
*) baseopts="$baseopts $ropt" ;;
esac
done
ropt=""
reqopts="$baseopts $iupopts"
for ropt in $reqopts; do
case $ropt in
66|67|128|224|225|226) [ $enabled == "on" ] && newreqopts="$newreqopts $ropt" ;;
*) newreqopts="$newreqopts $ropt" ;;
esac
done
newreqopts="$(echo $newreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
echo "$newreqopts"
}
for net in $(management_interfaces); do
uci -q set network.$net.reqopts="$(new_reqopts $net)"
done
uci commit network
}
set_iup_reqopts

View File

@@ -0,0 +1,219 @@
#!/bin/sh
# functions that take dhcp options received on the wan interface
# and relay/repeat them for specific clients
#config dhcp_option_relay
# option enable 1
# list dhcp_option 43
# list from_interface wan
# option vendorclass '*SDX*'
# where:
# dhcp_option_relay is the name of the section parsed by this script
# enable/enabled - option, enable the uci section [default on]
# dhcp_option/dhcp_options - list of dhcp options (0-255) to be relayed/repeated
# overwrite - if same dhcp_option already exists in /etc/config/dhcp, overwrite it with this option [default off]
# from_interface - list of interfaces (e.g. wan) to get the dhcp options from
. /lib/functions.sh
interface=""
opt224=""
opt225=""
opt226=""
opt43=""
opt128=""
opt66=""
opt67=""
opt132=""
opt133=""
newsectionid="0"
function parse_the_json()
{
local the_json="$@"
json_load "$the_json"
json_get_var interface interface
json_get_var opt224 privopt224
json_get_var opt225 privopt225
json_get_var opt226 privopt226
json_get_var opt43 vendorspecinf # option 43
json_get_var opt128 httpurl128
json_get_var opt66 tftp # option 66
json_get_var opt67 bootfile #option 67
json_get_var opt132 vlanid # option 132
json_get_var opt133 vlanpriority # option 133
}
function add_section_dhcp_vendorclass()
{
local dhcp_option=$1
local dhcp_option_value=$2
local vendorclass=$3
local new=
newsectionid=$((newsectionid+1))
#echo "add_section_dchp_vendorclass $dhcp_option ${dhcp_option_value} $vendorclass"
new=$(uci add dhcp vendorclass)
uci set dhcp.$new.vendorclass="$vendorclass"
uci set dhcp.$new.networkid="dhcp_option_relay_$newsectionid"
uci add_list dhcp.$new.dhcp_option=$dhcp_option,\"${dhcp_option_value}\"
uci commit dhcp
}
function dhcp_option_relay()
{
local section="$1"
local enable="" enabled=""
local dhcp_option="" dhcp_option_value=""
local vendorclass=""
#local overwrite=""
local from_interface
#echo "section: $section"
# parse only enabled sections
config_get_bool enabled $section enabled 1
config_get_bool enable $section enable 1
#echo "enabled: $enabled"
#echo "enable : $enable"
if [ "$enable" == "0" -o "$enabled" == "0" ] ; then
#echo "section $section is not enabled"
return
fi
# todo: for disabled sections: run only the removal of the dhcp options
# option overwrite 1
#config_get_bool overwrite $section overwrite 0
config_get vendorclass $section vendorclass
if [ ${#vendorclass} -le 1 ]; then
#echo "vendorclass must not be empty"
return
fi
# list to_interface lan
# to_interface - list of interfaces (e.g. lan, guest) to advertise the dhcp options to
#foreach_to_interface() {
# local to_interface=$1
# echo ""
# echo " from_interface $from_interface"
# echo " dhcp_option $dhcp_option"
# echo " dhcp_option_value $dhcp_option_value"
# echo " overwrite $overwrite"
# echo " to_interface $to_interface"
#
# if [ ! $(uci -q get dhcp.$to_interface) ] ; then
# echo "to_interface $to_interface does not exist in dhcp uci config"
# return
# fi
#
#}
foreach_dhcp_option() {
dhcp_option=$1
echo "dhcp_option: $dhcp_option"
case $dhcp_option in
43) dhcp_option_value=$opt43 ;;
66) dhcp_option_value=$opt66 ;;
67) dhcp_option_value=$opt67 ;;
128) dhcp_option_value=$opt128 ;;
132) dhcp_option_value=$opt132 ;;
133) dhcp_option_value=$opt133 ;;
224) dhcp_option_value=$opt224 ;;
225) dhcp_option_value=$opt225 ;;
226) dhcp_option_value=$opt226 ;;
*) dhcp_option_value="unsupported" ;;
esac
if [ "${dhcp_option_value}" == "unsupported" ] ; then
echo "dhcp_option $dhcp_option is unsupported"
return
fi
if [ "${dhcp_option_value}" == "" ] ; then
echo "dhcp_option $dhcp_option is empty"
return
fi
#echo "dhcp_option: $dhcp_option dhcp_option_value: ${dhcp_option_value}"
#config_list_foreach $section to_interface foreach_to_interface
add_section_dhcp_vendorclass $dhcp_option ${dhcp_option_value} $vendorclass
}
foreach_from_interface() {
from_interface="$1"
#echo "from_interface: $from_interface"
if [ "$from_interface" != "$interface" ]; then
return
fi
dhcp_option=""
config_list_foreach $section dhcp_option foreach_dhcp_option
#config_list_foreach $section dhcp_options foreach_dhcp_option
}
from_interface=""
config_list_foreach $section from_interface foreach_from_interface
}
# in uci dhcp config:
# remove all the vendorclass sections
# that have previosly been configured by this script.
# all are identified by "option networkid dhcp_option_relay_*"
function dhcp_option_relay_clear_prev()
{
local to_remove=""
foreach_vendorclass() {
local section="$1"
local networkid
config_get networkid $section networkid
case "$networkid"
in dhcp_option_relay*)
to_remove="$to_remove $section"
;;
esac
}
config_load dhcp
config_foreach foreach_vendorclass vendorclass
local sect
for sect in $to_remove ; do
uci_remove dhcp $sect
done
uci_commit dhcp
}
# the main function
function dhcp_option_relay_parse()
{
local the_json="$@"
parse_the_json "$the_json"
dhcp_option_relay_clear_prev
newsectionid="0"
config_load provisioning
config_foreach dhcp_option_relay dhcp_option_relay
#config_foreach dhcp_option_relay dhcp_options_relay
#config_foreach dhcp_option_relay dhcpoption_relay
#config_foreach dhcp_option_relay dhcpoptions_relay
#config_foreach dhcp_option_relay dhcp_optionrelay
#config_foreach dhcp_option_relay dhcp_optionsrelay
#config_foreach dhcp_option_relay dhcpoptionrelay
#config_foreach dhcp_option_relay dhcpoptionsrelay
}
#dhcp_option_relay_parse

View File

@@ -5,6 +5,7 @@ echo $$ > /var/run/iup.pid
. /lib/functions.sh
. /lib/functions/network.sh
. /lib/functions/savecfg.sh
. /lib/functions/dhcp_option_relay.sh
. /usr/share/libubox/jshn.sh
include /lib/upgrade
@@ -268,19 +269,20 @@ change_to_vlan() {
base_dev=$(echo ${base_dev} | cut -d. -f1)
# add "VLAN interface" to the "end of the file".
uci add layer2_interface_vlan vlan_interface
uci set layer2_interface_vlan.@vlan_interface[-1].name=${name}
uci set layer2_interface_vlan.@vlan_interface[-1].vlan8021q=${1}
uci set layer2_interface_vlan.@vlan_interface[-1].vlan8021p=${2}
uci set layer2_interface_vlan.@vlan_interface[-1].ifname="${base_dev}.${1}"
uci set layer2_interface_vlan.@vlan_interface[-1].baseifname=${base_dev}
uci add network device
uci rename network.@device[-1]=${name}
uci set network.@device[-1].type=8021q
uci set network.@device[-1].ifname=${base_dev}
uci set network.@device[-1].name="${base_dev}.${1}"
uci set network.@device[-1].vid=${1}
uci set network.@device[-1].priority=${2}
# and commit the change.
uci commit layer2_interface_vlan
v "option 132: committed update to file layer2_interface_vlan"
uci commit network
v "option 132: committed update to file network"
# reload configuration files.
/etc/init.d/layer2_interface_vlan reload
v "option 132: reload layer2_interface_vlan config"
v "option 132: reload network config"
# replace old interface (like eth0.1 with new eth0.101).
wan_if=$(uci get network.$3.ifname)
@@ -383,6 +385,10 @@ handle_option224()
parse_dhcp_options()
{
local the_json="$@"
# process the dhcp_option_relay sections
dhcp_option_relay_parse "$the_json"
# Process IUP related DHCP options #
local privopt224 privopt225 privopt226 vendorspecinf httpurl128
local tftp bootfile vlanid vlanpriority interface
@@ -409,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"
@@ -562,7 +569,7 @@ main()
if [ "$filesystem" == "JFFS2" ] ; then
firmware=$firmware.w
else
firmware=$firmware.y
firmware=$firmware.y3
fi
if [ "$sofwareminuspath" == "${sofwareminuspath/$firmware/}" ] ; then
v "Software \"$software\""

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,42 +0,0 @@
#
# Copyright (C) 2013 Inteno
#
include $(TOPDIR)/rules.mk
PKG_NAME:=layer2interface
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/layer2interface
CATEGORY:=Base system
TITLE:=Tools for setting up layer2 interfaces
endef
define Package/layer2interface/description
layer2interface contains necessary tools to create
layer2 interfaces
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./broadcom/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
endef
ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_mips),y)
define Package/layer2interface/install
$(CP) ./broadcom/* $(1)/
endef
else ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y)
define Package/layer2interface/install
$(CP) ./broadcom/* $(1)/
endef
endif
$(eval $(call BuildPackage,layer2interface))

View File

@@ -1,48 +0,0 @@
# DSL Modes
config dsl-line line
list mode gdmt
list mode glite
list mode t1413
list mode adsl2
list mode adsl2p
list mode annexl
list mode annexm
list mode vdsl2
list mode gfast
list profile 8a
list profile 8b
list profile 8c
list profile 8d
list profile 12a
list profile 12b
list profile 17a
list profile 30a
list profile 35b
option bitswap 1
option sra 1
option trellis
option sesdrop
# VDSL2 only
option us0
option dynamicd
option dynamicf
option sos
config atm-device atm0
option name 'ATM'
option vpi '8'
option vci '35'
option device atm0
option link_type 'eoa' # EoA, IPoA, PPPoA, CIP
option encapsulation 'llc' # llc, vcmux
option qos_class 'ubr' # ubr, cbr, gfr, vbr-nrt, vbr-rt, ubr+, abr
# option pcr '512'
# option scr '256'
# option mbs '1024'
config ptm-device ptm0
option name 'PTM'
option device 'ptm0'
option priority '1'
option portid '1'

View File

@@ -1,26 +0,0 @@
config dsltype 'vdsl'
option 'enabled' 'on'
config dsltype 'adsl'
option 'enabled' 'on'
config dslsettings 'capabilities'
option 'GDmt' 'Enabled'
option 'Glite' 'Enabled'
option 'T1413' 'Enabled'
option 'ADSL2' 'Enabled'
option 'AnnexL' 'Enabled'
option 'ADSL2plus' 'Enabled'
option 'VDSL2' 'Enabled'
option '8a' 'Enabled'
option '8b' 'Enabled'
option '8c' 'Enabled'
option '8d' 'Enabled'
option '12a' 'Enabled'
option '12b' 'Enabled'
option '17a' 'Enabled'
option '30a' 'Enabled'
option 'US0' 'on'
option 'bitswap' 'on'
option 'sra' 'on'

View File

@@ -1,11 +0,0 @@
config atm_bridge
option 'link_type' 'EoA'
option 'encapseoa' 'llcsnap_eth'
option 'unit' '0'
option 'ifname' 'atm0.1'
option 'baseifname' 'atm0'
option 'vpi' '8'
option 'vci' '35'
option 'name' 'DSL8_35'
option 'atmtype' 'ubr'

View File

@@ -1,2 +0,0 @@
config ethernet_interface 'Wan'

View File

@@ -1,9 +0,0 @@
config vdsl_interface
option 'unit' '0'
option 'ifname' 'ptm0.1'
option 'baseifname' 'ptm0'
option 'name' 'VDSL2'
option 'dslat' '1'
option 'ptmprio' '1'
option 'ipqos' '1'

View File

@@ -1,38 +0,0 @@
#
# Ethernet frame types
# This file describes some of the various Ethernet
# protocol types that are used on Ethernet networks.
#
# This list could be found on:
# http://www.iana.org/assignments/ethernet-numbers
#
# <name> <hexnumber> <alias1>...<alias35> #Comment
#
IPv4 0800 ip ip4 # Internet IP (IPv4)
X25 0805
ARP 0806 ether-arp #
FR_ARP 0808 # Frame Relay ARP [RFC1701]
BPQ 08FF # G8BPQ AX.25 Ethernet Packet
DEC 6000 # DEC Assigned proto
DNA_DL 6001 # DEC DNA Dump/Load
DNA_RC 6002 # DEC DNA Remote Console
DNA_RT 6003 # DEC DNA Routing
LAT 6004 # DEC LAT
DIAG 6005 # DEC Diagnostics
CUST 6006 # DEC Customer use
SCA 6007 # DEC Systems Comms Arch
TEB 6558 # Trans Ether Bridging [RFC1701]
RAW_FR 6559 # Raw Frame Relay [RFC1701]
AARP 80F3 # Appletalk AARP
ATALK 809B # Appletalk
802_1Q 8100 8021q 1q 802.1q dot1q # 802.1Q Virtual LAN tagged frame
IPX 8137 # Novell IPX
NetBEUI 8191 # NetBEUI
IPv6 86DD ip6 # IP version 6
PPP 880B # PPP
ATMMPOA 884C # MultiProtocol over ATM
PPP_DISC 8863 # PPPoE discovery messages
PPP_SES 8864 # PPPoE session messages
ATMFATE 8884 # Frame-based ATM Transport over Ethernet
LOOP 9000 loopback # loop proto

View File

@@ -1,2 +0,0 @@
[ "$STATUS" == "up" -o "$STATUS" == "down" ] && /etc/init.d/dsl reload

View File

@@ -1,8 +0,0 @@
if [ "$STATUS" == "up" ]; then
ubus call led.dsl set '{"state":"ok"}'
elif [ "$STATUS" == "down" ]; then
ubus call led.dsl set '{"state":"off"}'
elif [ "$STATUS" == "training" ]; then
ubus call led.dsl set '{"state":"alert"}'
fi

View File

@@ -1,73 +0,0 @@
include /lib/network
# true if speed on interface is Gbit
gigatest() {
local speed=$(ethctl $INTERFACE media-type 2>&1 | awk '{if (NR == 2) print $6}')
case "$speed" in
1000*) return 0 ;;
*) return 1 ;;
esac
}
# true if there is a link on any lan port
lan_test () {
local ledontest
for dev in $(db get hw.board.ethernetLanPorts); do
ledontest=$(cat /sys/class/net/$dev/operstate)
if [ "$ledontest" == "up" ]; then
return 0
fi
done
return 1
}
case "$ACTION" in
add|register)
INTFNAME=$(interfacename $INTERFACE)
OPERSTATE=$(cat /sys/class/net/$INTERFACE/operstate)
# if [ "$OPERSTATE" == "up" ]; then
if true ; then
case "$INTFNAME" in
GbE*)
ubus call led.lan set '{"state" : "ok"}'
ubus call led.gbe set '{"state" : "ok"}'
ubus call led.gbe_phy_link set '{"state" : "ok"}'
ubus call led.gbe_phy_speed set '{"state": "off"}'
$(gigatest) && ubus call led.gbe_phy_speed set '{"state":"ok"}'
;;
LAN*)
ubus call led.lan set '{"state":"ok"}'
;;
WAN*)
ubus call led.wan set '{"state" : "ok"}'
ubus call led.wan_phy_link set '{"state" : "ok"}'
ubus call led.wan_phy_speed set '{"state" : "off"}'
$(gigatest) && ubus call led.wan_phy_speed set '{"state":"ok"}'
;;
esac
fi
;;
remove|unregister)
INTFNAME=$(interfacename $INTERFACE)
OPERSTATE=$(cat /sys/class/net/$INTERFACE/operstate)
if [ "$OPERSTATE" == "down" ]; then
case "$INTFNAME" in
GbE*)
ubus call led.gbe set '{"state" : "off"}'
ubus call led.gbe_phy_link set '{"state" : "off"}'
ubus call led.gbe_phy_speed set '{"state" : "off"}'
$(lan_test) || ubus call led.lan set '{"state":"off"}'
;;
LAN*)
$(lan_test) || ubus call led.lan set '{"state":"off"}'
;;
WAN*)
ubus call led.wan set '{"state" : "off"}'
ubus call led.wan_phy_speed set '{"state" : "off"}'
ubus call led.wan_phy_link set '{"state" : "off"}'
;;
esac
fi
;;
esac

View File

@@ -1,515 +0,0 @@
#!/bin/sh /etc/rc.common
. /lib/functions.sh
include /lib/network
START=20
USE_PROCD=1
DEVICE_ADDED=0
device_config_exists() {
ubus call uci get '{"config":"network","type":"device"}' | grep -w name | grep -qw "$1" && return 0
return 1
}
configure_untagged_vlan() {
local name="$1"
local device="$2"
local ifname="$3"
[ -n "$ifname" -a -n "$name" ] || return
device_config_exists "$ifname" && return
uci -q set network.$name=device
uci -q set network.$name.type=untagged
uci -q set network.$name.ifname="$device"
uci -q set network.$name.name="$ifname"
uci -q commit network
DEVICE_ADDED=1
}
# ATM #
check_pvc() {
local vpi=$1
local vci=$2
local ret
ret=$(xtmctl operate conn --show | awk -v test="$vpi/$vci" '{if ($3==test ) print $5 }')
case $ret in
''|*[!0-9]*) return 0 ;;
*) return $ret ;;
esac
}
check_xtm_list() {
local qclass=$1
local pcr scr mbs
local ret
case $# in
1)
pcr=0
scr=0
mbs=0
;;
2)
pcr=$2
scr=0
mbs=0
;;
4)
pcr=$2
scr=$3
mbs=$4
;;
esac
ret=$(xtmctl operate tdte --show | awk -v test="$qclass" -v pcr="$pcr" -v scr="$scr" -v mbs="$mbs" '{if ($2==test && $3==pcr && $4==scr && $5==mbs ) print $1 }')
case $ret in
''|*[!0-9]*) return 0 ;;
*) return $ret ;;
esac
}
configure_atm_device() {
local name vpi vci device link_type encapsulation qos_class pcr mbs scr
config_get name $1 name "ATM"
config_get vpi $1 vpi "8"
config_get vci $1 vci "35"
config_get device $1 device "atm0"
config_get link_type $1 link_type "eoa"
config_get encapsulation $1 encapsulation "llc"
config_get qos_class $1 qos_class "ubr"
config_get pcr $1 pcr
config_get mbs $1 mbs
config_get scr $1 scr
check_pvc $vpi $vci
ret=$?
if [ "$ret" -eq 0 ]; then
check_xtm_list $qos_class $pcr $scr $mbs
ret=$?
if [ "$ret" -eq 0 ]; then
case $qos_class in # ubr, cbr, gfr, vbr-nrt, vbr-rt, ubr+, abr
ubr)
xtmctl operate tdte --add "$qos_class"
;;
ubr_pcr|ubr+)
xtmctl operate tdte --add "$qos_class" $pcr
;;
cbr)
xtmctl operate tdte --add "$qos_class" $pcr
;;
nrtvbr|vbr-nrt)
xtmctl operate tdte --add "$qos_class" $pcr $scr $mbs
;;
rtvbr|vbr-rt)
xtmctl operate tdte --add "$qos_class" $pcr $scr $mbs
;;
gfr)
;;
abr)
;;
esac
fi
case $link_type in # EoA, IPoA, PPPoA, CIP
EoA|eoa)
[ $encapsulation == "vcmux" ] && encapsulation="vcmux_eth" || encapsulation="llcsnap_eth"
;;
PPPoA|pppoa)
[ $encapsulation == "vcmux" ] && encapsulation="vcmux_pppoa" || encapsulation="llcencaps_ppp"
;;
IPoA|ipoa)
[ $encapsulation == "vcmux" ] && encapsulation="vcmux_ipoa" || encapsulation="llcsnap_rtip"
;;
CIP|cip)
;;
esac
check_xtm_list $qos_class $pcr $scr $mbs
ret="$?"
xtmctl operate conn --add 1.$vpi.$vci aal5 $encapsulation 0 1 $ret
xtmctl operate conn --addq 1.$vpi.$vci 0 wrr 1 dt # low priority queue
xtmctl operate conn --addq 1.$vpi.$vci 1 wrr 1 dt # mid priority queue upstream ACK's and ping from LAN will use this queue
xtmctl operate conn --addq 1.$vpi.$vci 7 wrr 1 dt # high priority queue, internal traffic dhcp igmp dns and icmp
xtmctl operate conn --createnetdev 1.$vpi.$vci $device
xtmctl operate intf --state 1 enable
configure_untagged_vlan "$name" "$device" "$device.1"
[ $DEVICE_ADDED -eq 1 ] && ubus call network reload
fi
}
remove_atm_devices() {
local vpi vci rest
local vpivci=`xtmctl operate conn --show | grep "ATM\|mode" | awk '{if (NR!=1 && $1!="PTM") {print $3}}'`
for i in $vpivci
do
rest=${i#\/}
vpi=${rest%%\/*}
vci=${rest#*\/}
echo "xtmctl operate conn --delete 1.$vpi.$vci"
xtmctl operate conn --delete 1.$vpi.$vci
echo "xtmctl operate conn --deletenetdev 1.$vpi.$vci"
xtmctl operate conn --deletenetdev 1.$vpi.$vci
done
}
create_atm_devices() {
echo "Creating ATM Device(s)"
config_load dsl
config_foreach configure_atm_device atm-device
}
# ATM END #
# PTM #
check_ptm() {
local ret
local ptmprio=$1
local dslat=$2
if [ "$ptmprio" -eq 2 ]; then
ptmprio="high"
else
ptmprio="low"
fi
ret=$(xtmctl operate conn --show | awk -v dslat="$dslat" -v ptmprio="$ptmprio" '{if ($2 == dslat && $3 == ptmprio ) print $2 }')
case $ret in
''|*[!0-9]*) return 0 ;;
*) return $ret ;;
esac
}
configure_ptm_device() {
local name device priority portid
config_get name $1 name "PTM"
config_get device $1 device "ptm0"
config_get priority $1 priority 1
config_get portid $1 portid 1
check_ptm $priority $portid
ret=$?
if [ "$ret" -eq 0 ]; then
xtmctl operate conn --add $portid.$priority
xtmctl operate conn --addq $portid.$priority 0 wrr 1 dt -1 -1 3000 # low priority queue
xtmctl operate conn --addq $portid.$priority 1 wrr 1 dt -1 -1 3000 # mid priority queue upstream ACK's and ping from LAN will use this queue
xtmctl operate conn --addq $portid.$priority 7 wrr 1 dt -1 -1 3000 # high priority queue, internal traffic dhcp igmp dns and icmp
echo "xtmctl operate conn --createnetdev $portid.$priority $device"
xtmctl operate conn --createnetdev $portid.$priority $device
xtmctl operate intf --state 1 enable
configure_untagged_vlan "$name" "$device" "$device.1"
[ $DEVICE_ADDED -eq 1 ] && ubus call network reload
fi
}
remove_ptm_devices() {
local delptm
local x=0
IFS=$'\n'
for i in `xtmctl operate conn --show | grep "PTM\|mode"`
do
if [ $x -eq 1 ]; then
delptm=$(echo $i | awk '{if ($1!="ATM") print $2"."$11}')
echo "xtmctl operate conn --delete $delptm"
xtmctl operate conn --delete $delptm
xtmctl operate conn --deletenetdev $delptm
fi
x=1
done
unset IFS
}
create_ptm_devices() {
echo "Creating PTM Device(s)"
config_load dsl
config_foreach configure_ptm_device ptm-device
}
# PTM END #
prioritize_arp()
{
ebtables -t nat -D POSTROUTING -j mark --mark-or 0x7 -p ARP >/dev/null
ebtables -t nat -A POSTROUTING -j mark --mark-or 0x7 -p ARP >/dev/null
}
remove_devices() {
remove_atm_devices
remove_ptm_devices
}
create_devices() {
local tpstc="$(xdslctl info --show | grep TPS-TC)"
if echo "$tpstc" | grep -q "ATM Mode"; then
create_atm_devices
elif echo "$tpstc" | grep -q "PTM Mode"; then
create_ptm_devices
fi
}
start_dsl() {
local VDSL=0
local GFAST=0
local mod=""
local modes=""
local profile=""
config_load dsl
# Modes
config_get mode line mode
for mod in $mode; do
[ $mod == "gdmt" ] && "${modes}d"
[ $mod == "glite" ] && modes="${modes}l"
[ $mod == "t1413" ] && modes="${modes}t"
[ $mod == "adsl2" ] && modes="${modes}2"
[ $mod == "adsl2p" ] && modes="${modes}p"
[ $mod == "annexl" ] && modes="${modes}e"
[ $mod == "annexm" ] && modes="${modes}m"
[ $mod == "vdsl2" ] && modes="${modes}v" && VDSL=1
[ $mod == "gfast" ] && modes="${modes}f" && GFAST=1
done
# VDSL Profiles
config_get profile line profile
profile="$(echo $profile | sed 's/35b/BrcmPriv1/g')"
# Capabilities
config_get_bool bitswap line bitswap 1
[ $bitswap -eq 1 ] && bitswap="on" || bitswap="off"
config_get_bool sra line sra 1
[ $sra -eq 1 ] && sra="on" || sra="off"
# config_get_bool trellis line trellis 1
# config_get_bool sesdrop line sesdrop 1
# VDSL2 only
config_get_bool us0 line us0 1
[ $us0 -eq 1 ] && us0="on" || us0="off"
# config_get_bool dynamicd line dynamicd 1
# config_get_bool dynamicf line dynamicf 1
# config_get_bool sos line sos 1
echo "Starting DSL"
xtmctl start
xtmctl operate intf --state 1 enable
if [ $VDSL -eq 1 -o $GFAST -eq 1 ]; then
echo "xdslctl start --up --mod $modes --profile "$profile" --sra $sra --bitswap $bitswap --us0 $us0"
xdslctl start --up --mod $modes --profile "$profile" --sra $sra --bitswap $bitswap --us0 $us0
else
echo "xdslctl start --up --mod $modes --sra $sra --bitswap $bitswap"
xdslctl start --up --mod $modes --sra $sra --bitswap $bitswap
fi
if [ $GFAST -eq 1 ]; then
# enable V43 tone set for GFAST
echo "xdslctl configure1 --phycfg 0 0 0 0 0 0 0 0 0 0 0 0x400000 0x400000"
xdslctl configure1 --phycfg 0 0 0 0 0 0 0 0 0 0 0 0x400000 0x400000
fi
}
# CONVERT OLD CONFIG #
convert_old_atm() {
local name ifname baseifname
local vpi vci link_type atmtype pcr scr mbs
local encapseoa encapspppoa encapsipoa encapsulation
config_get atmtype $1 atmtype "ubr"
config_get link_type $1 link_type "EoA"
config_get pcr $1 pcr
config_get scr $1 scr
config_get mbs $1 mbs
config_get vpi $1 vpi "8"
config_get vci $1 vci "35"
config_get encapseoa $1 encapseoa
config_get encapspppoa $1 encapspppoa
config_get encapsipoa $1 encapsipoa
config_get baseifname $1 baseifname "atm0"
config_get name $1 name "ATM$vpi$vci"
uci -q set dsl.$baseifname=atm-device
uci -q set dsl.$baseifname.name="$name"
uci -q set dsl.$baseifname.device="$baseifname"
uci -q set dsl.$baseifname.qos_class="$atmtype"
uci -q set dsl.$baseifname.vpi="$vpi"
uci -q set dsl.$baseifname.vci="$vci"
uci -q set dsl.$baseifname.pcr="$pcr"
uci -q set dsl.$baseifname.mbs="$mbs"
uci -q set dsl.$baseifname.scr="$scr"
case $link_type in
EoA)
uci -q set dsl.$baseifname.link_type="eoa"
[ "$encapseoa" == "vcmux_eth" ] && encapsulation="vcmux" || encapsulation="llc"
uci -q set dsl.$baseifname.encapsulation="$encapsulation"
;;
PPPoA)
uci -q set dsl.$baseifname.link_type="pppoa"
[ "$encapspppoa" == "vcmux_pppoa" ] && encapsulation="vcmux" || encapsulation="llc"
uci -q set dsl.$baseifname.encapsulation="$encapsulation"
;;
IPoA)
uci -q set dsl.$baseifname.link_type="ipoa"
[ "$encapsipoa" == "vcmux_ipoa" ] && encapsulation="vcmux" || encapsulation="llc"
uci -q set dsl.$baseifname.encapsulation="$encapsulation"
;;
esac
}
convert_old_ptm() {
local name ifname baseifname
local dslat ptmprio
config_get name $1 name "PTM"
config_get baseifname $1 baseifname "ptm0"
config_get dslat $1 dslat
config_get ptmprio $1 ptmprio
uci -q set dsl.$baseifname=ptm-device
uci -q set dsl.$baseifname.name="$name"
uci -q set dsl.$baseifname.device="$baseifname"
uci -q set dsl.$baseifname.priority="$ptmprio"
uci -q set dsl.$baseifname.portid="$dslat"
}
convert_old_dsl() {
local cap
sed -i 's/Enabled/1/g' /etc/config/layer2_interface
sed -i 's/Disabled/0/g' /etc/config/layer2_interface
uci -q delete dsl.line.mode
uci -q delete dsl.line.profile
uci -q delete dsl.line.us0
uci -q delete dsl.line.sra
uci -q delete dsl.line.bitswap
config_load layer2_interface
# Mode
config_get_bool cap capabilities GDmt 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.mode=gdmt
config_get_bool cap capabilities Glite 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.mode=glite
config_get_bool cap capabilities T1413 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.mode=t1413
config_get_bool cap capabilities ADSL2 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.mode=adsl2
config_get_bool cap capabilities ADSL2plus 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.mode=adsl2p
config_get_bool cap capabilities AnnexL 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.mode=annexl
config_get_bool cap capabilities AnnexM 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.mode=annexm
config_get_bool cap capabilities VDSL2 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.mode=vdsl2
config_get_bool cap capabilities GFast 0
[ $cap -eq 1 ] && uci -q add_list dsl.line.mode=gfast
# Profile
config_get_bool cap capabilities 8a 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.profile=8a
config_get_bool cap capabilities 8b 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.profile=8b
config_get_bool cap capabilities 8c 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.profile=8c
config_get_bool cap capabilities 8d 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.profile=8d
config_get_bool cap capabilities 12a 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.profile=12a
config_get_bool cap capabilities 12b 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.profile=12b
config_get_bool cap capabilities 17a 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.profile=17a
config_get_bool cap capabilities 30a 1
[ $cap -eq 1 ] && uci -q add_list dsl.line.profile=30a
config_get_bool cap capabilities 35b 0
[ $cap -eq 1 ] && uci -q add_list dsl.line.profile=35b
# Capability
config_get_bool cap capabilities US0 1
uci -q set dsl.line.us0=$cap
config_get_bool cap capabilities bitswap 1
uci -q set dsl.line.bitswap=$cap
config_get_bool cap capabilities sra 1
uci -q set dsl.line.sra=$cap
}
convert_old_config() {
[ -f /etc/config/dsl ] || touch /etc/config/dsl
# DSL
if uci -q get layer2_interface.capabilities >/dev/null; then
convert_old_dsl
fi
# ATM Devices
if uci -q get layer2_interface_adsl.@atm_bridge[0] >/dev/null; then
config_load layer2_interface_adsl
config_foreach convert_old_atm atm_bridge
fi
# PTM Devices
if uci -q get layer2_interface_vdsl.@vdsl_interface[0] >/dev/null; then
config_load layer2_interface_vdsl
config_foreach convert_old_ptm vdsl_interface
fi
uci -q commit dsl
# rm -f /etc/config/layer2_interface
# rm -f /etc/config/layer2_interface_adsl
# rm -f /etc/config/layer2_interface_vdsl
}
# CONVERT OLD CONFIG END#
start_service() {
create_devices
}
stop_service() {
remove_devices
# echo "Stopping DSL"
# stop causes IRQ issues
# xdslctl stop
}
boot() {
local HASADSL="$(db -q get hw.board.hasAdsl)"
local HASVDSL="$(db -q get hw.board.hasVdsl)"
[ "$HASADSL" == "1" -o "$HASVDSL" == "1" ] || return
convert_old_config
prioritize_arp
start_dsl
start
}
reload_service() {
stop
start
}
service_triggers() {
procd_add_reload_trigger dsl layer2_interface layer2_interface_adsl layer2_interface_vdsl
}

View File

@@ -1,119 +0,0 @@
#!/bin/sh /etc/rc.common
. /lib/functions.sh
include /lib/network
START=20
USE_PROCD=1
DEVICE_ADDED=0
device_config_exists() {
ubus call uci get '{"config":"network","type":"device"}' | grep -w name | grep -qw "$1" && return 0
return 1
}
configure_ethernet_iface() {
local name baseifname ifname
config_get name $1 name
config_get baseifname $1 baseifname
config_get ifname $1 ifname
[ -n "$ifname" -a -n "$name" ] || return
device_config_exists "$ifname" && return
uci -q set network.$name=device
uci -q set network.$name.type=untagged
uci -q set network.$name.ifname="$baseifname"
uci -q set network.$name.name="$ifname"
DEVICE_ADDED=1
}
configure_vlan_iface() {
local name baseifname ifname
local vlan8021p vlan8021q
config_get name $1 name
config_get baseifname $1 baseifname
config_get ifname $1 ifname
config_get vlan8021p $1 vlan8021p
config_get vlan8021q $1 vlan8021q
[ -n "$ifname" -a -n "$name" ] || return
device_config_exists "$ifname" && return
uci -q set network.$name=device
uci -q set network.$name.type=8021q
uci -q set network.$name.priority=$vlan8021p
uci -q set network.$name.vid="$vlan8021q"
uci -q set network.$name.ifname="$baseifname"
uci -q set network.$name.name="$ifname"
uci -q commit network
DEVICE_ADDED=1
}
start_service() {
config_load layer2_interface_ethernet
config_foreach configure_ethernet_iface ethernet_interface
config_load layer2_interface_vlan
config_foreach configure_vlan_iface vlan_interface
[ $DEVICE_ADDED -eq 1 ] && ubus call network reload
}
boot() {
local baseifname port unit uplinkport
config_load layer2_interface_ethernet
config_get baseifname Wan baseifname
[ -n "$baseifname" ] || baseifname="$(db -q get hw.board.ethernetWanPort)"
uplinkport=$(uci show ports | grep "uplink='1'" | cut -d'.' -f2)
if [ -n "$uplinkport" ]; then
baseifname="$(uci -q get ports.$uplinkport.ifname)"
else
uplinkport=$(uci show ports | grep "ifname='$baseifname'" | cut -d'.' -f2)
[ -n "$uplinkport" ] && uci -q set ports.$uplinkport.uplink=1 && uci commit ports
fi
# if [ "$(db get hw.board.hardware)" != "EG300" ]; then
# if [ "$(get_port_speed $baseifname)" != "1000FD" ]; then
# ethctl $baseifname phy-power down
# ethctl $baseifname phy-power up
# fi
# fi
for interf in $(db get hw.board.ethernetPortOrder); do
ethswctl -c wan -i $interf -o disable
done
unit=$(echo $(get_port_number $baseifname) | cut -d ' ' -f 1)
port=$(echo $(get_port_number $baseifname) | cut -d ' ' -f 2)
ethswctl -c pause -n $unit -p $port -v 1
ethswctl -c hw-switching -o enable
if [ -n "$baseifname" ]; then
ethswctl -c wan -i $baseifname -o enable
fi
if [ "$(db get hw.board.tm)" == "1" ]; then
for interf in $(db get hw.board.ethernetPortOrder); do
tmctl porttminit --devtype ETH --if $interf --flag 1 || echo "ERROR: porttminit $interf failed!" > /dev/kmsg
done
fi
start
}
service_triggers() {
procd_add_reload_trigger layer2_interface_ethernet layer2_interface_vlan
}

View File

@@ -1,167 +0,0 @@
#!/bin/sh
hasEthWan="$(db -q get hw.board.hasEthWan)"
hasEthWan=${hasEthWan:-1}
hasAdsl="$(db -q get hw.board.hasAdsl)"
hasVdsl="$(db -q get hw.board.hasVdsl)"
LANPORTS="$(db -q get hw.board.ethernetLanPorts)"
ETHDEV=""
PTMDEV=""
ATMDEV=""
WANIFACE=""
device_config_exists() {
ubus call uci get '{"config":"network","type":"device"}' | grep -w name | grep -qw "$1" && return 0
return 1
}
populate_dsl_settings() {
if [ "$hasAdsl" == "0" -a "$hasVdsl" == "0" ]; then
rm -f /etc/config/dsl
return
else
touch /etc/config/dsl
fi
if ! uci -q get dsl.line >/dev/null; then
uci -q set dsl.line="dsl-line"
if [ "$hasAdsl" == "1" ]; then
# Mode
uci -q add_list dsl.line.mode=gdmt
uci -q add_list dsl.line.mode=glite
uci -q add_list dsl.line.mode=t1413
uci -q add_list dsl.line.mode=adsl2
uci -q add_list dsl.line.mode=adsl2p
uci -q add_list dsl.line.mode=annexl
uci -q add_list dsl.line.mode=annexm
uci -q add_list dsl.line.mode=vdsl2
#uci -q add_list dsl.line.mode=gfast
fi
if [ "$hasVdsl" == "1" ]; then
# Mode
uci -q add_list dsl.line.mode=vdsl2
# Profile
uci -q add_list dsl.line.profile=8a
uci -q add_list dsl.line.profile=8b
uci -q add_list dsl.line.profile=8c
uci -q add_list dsl.line.profile=8d
uci -q add_list dsl.line.profile=12a
uci -q add_list dsl.line.profile=12b
uci -q add_list dsl.line.profile=17a
uci -q add_list dsl.line.profile=30a
#uci -q add_list dsl.line.profile=35b
# Capability
uci -q set dsl.line.us0=1
fi
# Capability
uci -q set dsl.line.bitswap=1
uci -q set dsl.line.sra=1
fi
uci -q commit dsl
}
populate_atm_device() {
[ "$hasAdsl" == "0" ] && return
# ATM Device
if ! uci -q get dsl.@atm-device[0] >/dev/null; then
uci -q set dsl.atm0=atm-device
uci -q set dsl.atm0.name="ATM835"
uci -q set dsl.atm0.device="atm0"
uci -q set dsl.atm0.vpi="8"
uci -q set dsl.atm0.vci="35"
uci -q set dsl.atm0.qos_class="ubr"
uci -q set dsl.atm0.link_type="eoa"
uci -q set dsl.atm0.encapsulation="llc"
uci -q commit dsl
else
ATMDEV="$(uci -q get dsl.@atm-device[0].device)"
fi
ATMDEV="${ATMDEV:-atm0}"
WANIFACE="$ATMDEV.1"
device_config_exists "$WANIFACE" && return
uci -q set network.atmwan=device
uci -q set network.atmwan.type=untagged
uci -q set network.atmwan.ifname="$ATMDEV"
uci -q set network.atmwan.name="$WANIFACE"
}
populate_ptm_device() {
[ "$hasVdsl" == "0" ] && return
# PTM Device
if ! uci -q get dsl.@ptm-device[0] >/dev/null; then
uci -q set dsl.ptm0=atm-device
uci -q set dsl.ptm0.name="PTM"
uci -q set dsl.ptm0.device="ptm0"
uci -q set dsl.ptm0.priority="1"
uci -q set dsl.ptm0.portid="1"
uci -q commit dsl
else
PTMDEV="$(uci -q get dsl.@ptm-device[0].device)"
fi
PTMDEV="${PTMDEV:-ptm0}"
WANIFACE="$PTMDEV.1"
device_config_exists "$PTMDEV" && return
uci -q set network.ptmwan=device
uci -q set network.ptmwan.type=untagged
uci -q set network.ptmwan.ifname="$PTMDEV"
uci -q set network.ptmwan.name="$WANIFACE"
}
populate_eth_device() {
[ "$hasEthWan" == "0" ] && return
ETHDEV="$(db -q get hw.board.ethernetWanPort)"
WANIFACE="$ETHDEV.1"
device_config_exists "$WANIFACE" && return
uci -q set network.ethwan=device
uci -q set network.ethwan.type=untagged
uci -q set network.ethwan.ifname="$ETHDEV"
uci -q set network.ethwan.name="$WANIFACE"
}
populate_network_config_ifnames() {
# LAN ports
uci -q get network.lan.ifname >/dev/null || uci -q set network.lan.ifname="$LANPORTS"
[ $((hasEthWan+hasAdsl+hasVdsl)) -eq 0 ] && {
uci -q commit network
return
}
WANTYPE="$(uci -q get network.wan.type)"
[ "$WANTYPE" == "anywan" ] && {
uci -q delete network.wan.type
uci -q set network.wan.ifname="$WANIFACE"
}
uci -q get network.wan.ifname >/dev/null || uci -q set network.wan.ifname="$WANIFACE"
uci -q commit network
}
populate_dsl_settings
populate_atm_device
populate_ptm_device
populate_eth_device
populate_network_config_ifnames

Some files were not shown because too many files have changed in this diff Show More