Compare commits

..

254 Commits

Author SHA1 Message Date
Sachin Singla
6c808aeec3 change hash of ifbt package 2018-08-31 14:05:06 +02:00
Sachin Singla
1b255c5aa7 change package name to ifbt 2018-08-31 13:54:53 +02:00
Sachin Singla
d061bb78ba fix build issues in fbt package 2018-08-28 15:03:46 +02:00
Sachin Singla
af87a3305f fbt package 2018-08-27 16:47:22 +02:00
Sachin Singla
b7eeed044f new package for fbt 2018-08-27 16:14:44 +02:00
Sukru Senli
e8cf33b544 Merge remote-tracking branch 'origin/devel' 2017-12-27 12:07:48 +01:00
Sukru Senli
fb983f5dbc questd: imonitor: bring down and up the wireless radios when bsd or acsd crashes 2017-12-22 15:21:30 +01:00
Sukru Senli
676e40a0cc voice-client depend on asterisk13 or asterisk18-mod 2017-12-22 14:28:38 +01:00
Sukru Senli
215274ef98 tptest: remove tptest.bredband.net from list 2017-12-20 19:20:49 +01:00
Erik Horemans
02ca863b23 new ice-client 5.0.1-RC1 2017-12-20 13:53:51 +01:00
Reidar Cederqvist
6f86f000b1 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* b279429 fix empty client list on wl1 when wl0 is disabled ref #13485
* 1c47a44 change strndup to strdup to avoid warnings
-------------------------------------------------------------------------------
commit b2794295fdf9469b6cd8ba1544f291d4b83a7d5a
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-12-15 11:33:13 +0100

    fix empty client list on wl1 when wl0 is disabled ref #13485

Base directory -> /
 network.c |  5 +++--
 port.c    | 17 +++++++++++++++++
 port.h    |  1 +
 3 files changed, 21 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 1c47a44bfcb863319282900446bf20965c9eccbc
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-12-15 11:24:01 +0100

    change strndup to strdup to avoid warnings

Base directory -> /
 port.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-12-15 11:34:14 +01:00
Sukru Senli
8506eed1e4 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 4bbcb4d network: handle rssi for repeated arp clients
-------------------------------------------------------------------------------
commit 4bbcb4d2f8c901c18cdf4456e65497975e03fada
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-12-13 17:39:02 +0100

    network: handle rssi for repeated arp clients

Base directory -> /
 network.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-12-13 17:40:02 +01:00
Sukru Senli
53b3f486bd questd: imonitor: do not restart quest if lan ifname is missing or is bridge 2017-12-13 13:38:22 +01:00
Sukru Senli
e31e5f32da questd-3.1.40 2017-12-13 13:11:50 +01:00
Reidar Cederqvist
26c2dae0c9 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* b4b9988 questd: improve parsing
* 9e98e21 questd: get nvram Hardware Version value
* 875d5fe fix c99 warning
* 2711c6b questd: print rssi value from extender
* f62075b questd: get rssi value from extender
* cd39df6 add missing close for ioctl socket
-------------------------------------------------------------------------------
commit b4b99885bea425f552e8a844ff2f15e2d4672c65
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-12-04 17:12:37 +0100

    questd: improve parsing

Base directory -> /
 dumper.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 9e98e21a84347b3d77a5ae44fb2fc783c7bb77dd
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-12-04 16:27:27 +0100

    questd: get nvram Hardware Version value

Base directory -> /
 dumper.c | 20 ++++++++++++++++++++
 system.c |  5 +++++
 system.h |  1 +
 3 files changed, 26 insertions(+)
-------------------------------------------------------------------------------
commit 875d5fe069d178ecb1b4b9bca78aba90691afc12
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-11-30 16:13:31 +0100

    fix c99 warning

Base directory -> /
 wificontrol.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 2711c6b34357ea25abe08d43612347f6e0c4b5b2
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-11-23 15:37:56 +0100

    questd: print rssi value from extender

Base directory -> /
 network.c | 30 +++++++++++++++++++-----------
 network.h |  7 ++++++-
 2 files changed, 25 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
commit f62075bd509755052e6006db9e901476145500db
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-11-23 15:35:06 +0100

    questd: get rssi value from extender

Base directory -> /
 Makefile      |  2 +-
 wificontrol.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 71 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit cd39df609dcb7f824f50d4d544ac5247bcd85b3f
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-12-04 12:47:24 +0100

    add missing close for ioctl socket

Base directory -> /
 network.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
2017-12-07 15:48:04 +01:00
Erik Horemans
2f2d88f770 new ice-client ice-client 5.0.1-RC0 2017-12-05 16:34:25 +01:00
Ionut-Alex Oprea
540b09e26b imonitor: increase questd memory limit to 20MB refs #13511 2017-12-05 14:24:40 +01:00
Robin Stjerndorff
001c25ee12 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 16cb4dd questd: improve parsing
* 312ca10 questd: get nvram Hardware Version value
* 824c247 fix c99 warning
* 83a7011 questd: print rssi value from extender
* b554abd questd: get rssi value from extender
-------------------------------------------------------------------------------
commit 16cb4dda3909efef54b84d44fa11dc28f9763c8c
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-12-04 17:12:37 +0100

    questd: improve parsing

Base directory -> /
 dumper.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 312ca10075347ea1ca4d4a051d079ff5643a934e
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-12-04 16:27:27 +0100

    questd: get nvram Hardware Version value

Base directory -> /
 dumper.c | 20 ++++++++++++++++++++
 system.c |  5 +++++
 system.h |  1 +
 3 files changed, 26 insertions(+)
-------------------------------------------------------------------------------
commit 824c24781123b0cc83216486732e5a03823ec5ed
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-11-30 16:13:31 +0100

    fix c99 warning

Base directory -> /
 wificontrol.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 83a7011877b6a7b1dcbcfd925037ffd77de5165f
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-11-23 15:37:56 +0100

    questd: print rssi value from extender

Base directory -> /
 network.c | 30 +++++++++++++++++++-----------
 network.h |  7 ++++++-
 2 files changed, 25 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
commit b554abd3fa7e0898095bfb575803081f716d3723
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-11-23 15:35:06 +0100

    questd: get rssi value from extender

Base directory -> /
 Makefile      |  2 +-
 wificontrol.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 71 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
2017-12-04 17:27:22 +01:00
Sukru Senli
d30348fb43 questd-3.1.39 2017-11-29 17:26:18 +01:00
Sukru Senli
636648a34f icwmp-3.0-2017-11-24 2017-11-29 17:19:16 +01:00
Sukru Senli
5dc5355632 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 83a7011 questd: print rssi value from extender
* b554abd questd: get rssi value from extender
* 10cba85 Define missing variable
-------------------------------------------------------------------------------
commit 83a7011877b6a7b1dcbcfd925037ffd77de5165f
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-11-23 15:37:56 +0100

    questd: print rssi value from extender

Base directory -> /
 network.c | 30 +++++++++++++++++++-----------
 network.h |  7 ++++++-
 2 files changed, 25 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
commit b554abd3fa7e0898095bfb575803081f716d3723
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-11-23 15:35:06 +0100

    questd: get rssi value from extender

Base directory -> /
 Makefile      |  2 +-
 wificontrol.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 71 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit 10cba850fb80668502ca5ce0bc57533089062741
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-11-23 16:14:17 +0100

    Define missing variable

Base directory -> /
 port.c | 3 +++
 1 file changed, 3 insertions(+)
-------------------------------------------------------------------------------
2017-11-29 17:13:08 +01:00
Sukru Senli
76f2740a29 questd: imonitor: check lan network only if it exits 2017-11-28 16:14:38 +01:00
Sukru Senli
7a6dc0eb84 questd: imonitor: check ubus call with longer invervals 2017-11-24 16:14:10 +01:00
Sukru Senli
5f75567e4b questd: imonitor: restart questd if ports info is missing 2017-11-24 10:08:55 +01:00
Ionut-Alex Oprea
42a8a0c073 /etc/init.d/quest: remove unneeded code 2017-11-22 16:47:30 +01:00
Sukru Senli
c40ed94c31 layer2interface: enable V43 tone set for GFAST 2017-11-21 10:53:10 +01:00
Kenneth Johansson
783880f6e8 genconfig: add hpc_hu02 board. 2017-11-17 15:49:43 +01:00
Sukru Senli
35b77f688d Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* bc34921 mediatek: trigger auto channel selection based on busy time
-------------------------------------------------------------------------------
commit bc34921baff1f6bc9d76920d8863010fa6b4e3cd
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-17 09:28:55 +0100

    mediatek: trigger auto channel selection based on busy time

Base directory -> /
 mediatek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-11-17 09:29:26 +01:00
Jonas Höglund
d32c9061ef Extract core packages 2017-11-15 16:34:43 +01:00
Sukru Senli
38b76deb5e Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 053c721 wificontrol: do not run ApCliAutoConnect during wifi reload and wps
-------------------------------------------------------------------------------
commit 053c7218371b036976917e531fa1772d63b00dd3
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-14 16:58:51 +0100

    wificontrol: do not run ApCliAutoConnect during wifi reload and wps

Base directory -> /
 wificontrol.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-11-14 16:59:14 +01:00
Sukru Senli
d62d6167cb icwmp-3.0-2017-11-14 2017-11-14 16:45:01 +01:00
Sukru Senli
df6596d7d5 icwmp-3.0-2017-11-13 2017-11-13 18:09:34 +01:00
Sukru Senli
799c1c5aa3 ice-client: make sure ice-client password is always set to be WPAKEY 2017-11-10 14:22:30 +01:00
Sukru Senli
97d0f55d16 iop: genconfig: continue with common settings if board profile does not exist for the customer 2017-11-09 16:33:53 +01:00
Sukru Senli
cd8af291b1 Update feed [ feed_inteno_packages ] package [ loop-detector ]
-------------------------------------------------------------------------------
* d0fb770 update .gitignore
* 8e010ba use uint8_t instead of u_int8_t
-------------------------------------------------------------------------------
commit d0fb770eacd6691b98df138b60f5116e02f71a9b
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-07 16:37:21 +0100

    update .gitignore

Base directory -> /
 .gitignore | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit 8e010bac8a84812221bd8c5abbea46a624685ee8
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-07 16:36:39 +0100

    use uint8_t instead of u_int8_t

Base directory -> /
 mac_ethernet.c | 2 +-
 mac_ethernet.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-11-07 16:37:49 +01:00
Ronny Nilsson
6526877731 samba2: fix build in Debian 9
Tune compiler CFLAGS. Samaba2 otherwise won't build on a
Debian 9 system. The flags should be backwards compatible
as well.
2017-11-07 13:48:42 +01:00
Sukru Senli
05eb2b020d iop: compile loop-detector as module 2017-11-06 17:02:25 +01:00
Sukru Senli
6a6d30cd77 inteno-netmodes: mtk routed mode omcproxy config 2017-11-06 15:37:53 +01:00
Sukru Senli
ef8f558dd4 inteno-netmodes: reload network when switched to repeater mode via WebGUI 2017-11-06 15:36:37 +01:00
Robin Stjerndorff
f93d57d7f9 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 1fa7794 broadcom: proper flag parsing for VHT capabilities
* a75e33a system: show hardware name instead of hardwaremodel in router.system
* 5c1edef network: test connection of client via arping if bridge timer aging reached 30
* 5b1324d network: do not work on client array directly
* 78c4d67 broadcom: show correct maxrate for 80MHz
* bb65654 network: give ipaddr and network for disconnect clients
* 945be06 port: change to a quicker port validation function ref #13044
* 1e2b4d3 port: TEMPORARY fix for eg300 wan slowing down port calls
* 8cfa617 port: fix incorrect string comparison
* 0b3e3b4 port: fixe typo and redirect stderr to stdout ref #13044
* abad9c8 port: update logic for getting port-speed ref #13044
* 9d4cb92 change strcpy to strncpy
-------------------------------------------------------------------------------
commit 1fa7794590ca938f1dffc77048610f68e5386a68
Author: Robin Stjerndorff <robin.stjerndorff@inteno.se>
Date: 2017-11-06 10:35:28 +0100

    broadcom: proper flag parsing for VHT capabilities

Base directory -> /
 broadcom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit a75e33ae0f0b3abad6cdc6086c4feb9d5feb58a8
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-02 15:29:47 +0100

    system: show hardware name instead of hardwaremodel in router.system

Base directory -> /
 dumper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 5c1edef2de5bf95b0e3468a5aa9c2d5cfc14d485
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-02 14:20:57 +0100

    network: test connection of client via arping if bridge timer aging reached
    30

Base directory -> /
 network.c | 46 ++++++++++++++++++++++++++++------------------
 1 file changed, 28 insertions(+), 18 deletions(-)
-------------------------------------------------------------------------------
commit 5b1324d5650edaf2a82acaa71d568dd6586a24cc
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-02 10:47:02 +0100

    network: do not work on client array directly

Base directory -> /
 network.c | 203 +++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 101 insertions(+), 102 deletions(-)
-------------------------------------------------------------------------------
commit 78c4d67209287f40fd8bc78dbcea662dafd04050
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-01 18:22:17 +0100

    broadcom: show correct maxrate for 80MHz

Base directory -> /
 broadcom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit bb656543d0775057247c8b1e3048157121e0f399
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-10-18 14:58:05 +0200

    network: give ipaddr and network for disconnect clients

Base directory -> /
 network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 945be064408d5c6c1f1dfd34453d81657b8e1b87
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-12 11:15:33 +0200

    port: change to a quicker port validation function ref #13044

    and made default up to true for non eth devidces in ports call

Base directory -> /
 port.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
commit 1e2b4d3bb447f0249e81e4df36e8ad0b5c6195c6
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-12 11:13:48 +0200

    port: TEMPORARY fix for eg300 wan slowing down port calls

Base directory -> /
 port.c | 40 +++++++++++++++++++++++++++++++++-------
 1 file changed, 33 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit 8cfa6179b00e5a1278271cd48559d6bcd5829d46
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-11 17:09:55 +0200

    port: fix incorrect string comparison

Base directory -> /
 port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 0b3e3b4350d9c7d5250eff7e52a22dcb2aef514a
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-11 14:32:50 +0200

    port: fixe typo and redirect stderr to stdout ref #13044

Base directory -> /
 port.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit abad9c874b47e366384f2751a9ab846223bf7b5e
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-11 13:24:15 +0200

    port: update logic for getting port-speed ref #13044

Base directory -> /
 port.c | 133 ++++++++++++++++++++++++++++-------------------------------------
 1 file changed, 57 insertions(+), 76 deletions(-)
-------------------------------------------------------------------------------
commit 9d4cb9218fa75b4d4c091449fcd65c60d50e6caf
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-10-02 12:19:32 +0200

    change strcpy to strncpy

Base directory -> /
 network.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-11-06 10:36:58 +01:00
Reidar Cederqvist
9fec27da40 inteno-netmodes: removed dbug message from repeater ubus script 2017-11-03 13:08:20 +01:00
Sukru Senli
a64ff3c8a7 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* a75e33a system: show hardware name instead of hardwaremodel in router.system
-------------------------------------------------------------------------------
commit a75e33ae0f0b3abad6cdc6086c4feb9d5feb58a8
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-02 15:29:47 +0100

    system: show hardware name instead of hardwaremodel in router.system

Base directory -> /
 dumper.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-11-02 15:30:04 +01:00
Sukru Senli
0c178377f6 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 5c1edef network: test connection of client via arping if bridge timer aging reached 30
* 5b1324d network: do not work on client array directly
-------------------------------------------------------------------------------
commit 5c1edef2de5bf95b0e3468a5aa9c2d5cfc14d485
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-02 14:20:57 +0100

    network: test connection of client via arping if bridge timer aging reached
    30

Base directory -> /
 network.c | 46 ++++++++++++++++++++++++++++------------------
 1 file changed, 28 insertions(+), 18 deletions(-)
-------------------------------------------------------------------------------
commit 5b1324d5650edaf2a82acaa71d568dd6586a24cc
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-02 10:47:02 +0100

    network: do not work on client array directly

Base directory -> /
 network.c | 203 +++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 101 insertions(+), 102 deletions(-)
-------------------------------------------------------------------------------
2017-11-02 14:21:47 +01:00
Sukru Senli
28825b6078 loop-detector: add trigger for correct config file 2017-11-02 11:46:38 +01:00
Sukru Senli
991927899d loop-detector: hook it up to openwrt init and uci structure 2017-11-02 11:36:53 +01:00
Sukru Senli
541715b927 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 78c4d67 broadcom: show correct maxrate for 80MHz
-------------------------------------------------------------------------------
commit 78c4d67209287f40fd8bc78dbcea662dafd04050
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-11-01 18:22:17 +0100

    broadcom: show correct maxrate for 80MHz

Base directory -> /
 broadcom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-11-01 18:30:36 +01:00
Omar
54df72b3cc Ticket refs #11405: EX400: some packages are not available because they do not compile 2017-11-01 17:03:44 +01:00
Sukru Senli
1570a91c9c voice-client: fix erros during reload 2017-11-01 16:45:03 +01:00
Sukru Senli
509d9dfca8 loop-detector package 2017-11-01 13:58:19 +01:00
Sukru Senli
bd6352dfcb Update feed [ feed_inteno_packages ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 959eca8 button: do not add buttons to ubus
-------------------------------------------------------------------------------
commit 959eca8ab2b50eaccfff9c710cffe5b317bb6ad1
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-10-23 13:45:36 +0200

    button: do not add buttons to ubus

Base directory -> /
 src/button.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-10-23 13:46:02 +02:00
Anjan Chanda
0d9c49ac5e Update feed [ feed_inteno_packages ] package [ mtk-bndstrg ]
-------------------------------------------------------------------------------
* a67f5cc mtk-bndstrg: handle sticky clients
-------------------------------------------------------------------------------
commit a67f5ccdf9bc6810f15f1ece9edaad5e89cad0f7
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-10-18 19:49:33 +0530

    mtk-bndstrg: handle sticky clients

Base directory -> /
 bndstrg.c | 214 ++++++++++++++++++++++++++++++++++++++++----------------------
 bndstrg.h |   3 +
 2 files changed, 141 insertions(+), 76 deletions(-)
-------------------------------------------------------------------------------
2017-10-18 20:33:36 +05:30
Sukru Senli
8b0263ed90 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* bb65654 network: give ipaddr and network for disconnect clients
-------------------------------------------------------------------------------
commit bb656543d0775057247c8b1e3048157121e0f399
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-10-18 14:58:05 +0200

    network: give ipaddr and network for disconnect clients

Base directory -> /
 network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-10-18 14:58:47 +02:00
Sukru Senli
05490cbfc2 icwmp-3.0-2017-10-14 2017-10-16 15:42:14 +02:00
Omar
ac773f5bc3 Ticket refs #13024:
EX400 does not have any wandevice config in the datamodel in extender mode
2017-10-16 15:41:42 +02:00
Reidar Cederqvist
6e64075198 10-switch: fix for EG300 wan port ref #13048 2017-10-13 10:36:23 +02:00
Reidar Cederqvist
8b211d1fa9 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 945be06 port: change to a quicker port validation function ref #13044
* 1e2b4d3 port: TEMPORARY fix for eg300 wan slowing down port calls
-------------------------------------------------------------------------------
commit 945be064408d5c6c1f1dfd34453d81657b8e1b87
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-12 11:15:33 +0200

    port: change to a quicker port validation function ref #13044

    and made default up to true for non eth devidces in ports call

Base directory -> /
 port.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
commit 1e2b4d3bb447f0249e81e4df36e8ad0b5c6195c6
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-12 11:13:48 +0200

    port: TEMPORARY fix for eg300 wan slowing down port calls

Base directory -> /
 port.c | 40 +++++++++++++++++++++++++++++++++-------
 1 file changed, 33 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
2017-10-12 11:49:35 +02:00
Reidar Cederqvist
a224f4ccd8 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 8cfa617 port: fix incorrect string comparison
-------------------------------------------------------------------------------
commit 8cfa6179b00e5a1278271cd48559d6bcd5829d46
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-11 17:09:55 +0200

    port: fix incorrect string comparison

Base directory -> /
 port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-10-11 17:13:31 +02:00
Reidar Cederqvist
8bd23fa7e1 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 0b3e3b4 port: fixe typo and redirect stderr to stdout ref #13044
-------------------------------------------------------------------------------
commit 0b3e3b4350d9c7d5250eff7e52a22dcb2aef514a
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-11 14:32:50 +0200

    port: fixe typo and redirect stderr to stdout ref #13044

Base directory -> /
 port.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2017-10-11 14:33:03 +02:00
Erik Horemans
3252f728d8 new ice-client R5.0.0-RC8 2017-10-11 14:23:04 +02:00
Reidar Cederqvist
c11422844c Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* abad9c8 port: update logic for getting port-speed ref #13044
* 9d4cb92 change strcpy to strncpy
-------------------------------------------------------------------------------
commit abad9c874b47e366384f2751a9ab846223bf7b5e
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-10-11 13:24:15 +0200

    port: update logic for getting port-speed ref #13044

Base directory -> /
 port.c | 133 ++++++++++++++++++++++++++++-------------------------------------
 1 file changed, 57 insertions(+), 76 deletions(-)
-------------------------------------------------------------------------------
commit 9d4cb9218fa75b4d4c091449fcd65c60d50e6caf
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-10-02 12:19:32 +0200

    change strcpy to strncpy

Base directory -> /
 network.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-10-11 13:44:31 +02:00
Erik Horemans
273ba35ae8 new ice-client 5.0.0-RC7 2017-10-04 16:32:29 +02:00
Kenneth Johansson
64259f47bb Add broadcom 963138REF reference board. 2017-10-04 14:18:03 +02:00
Jonas Höglund
0133c2f23e Install endpt utility to target 2017-10-04 14:00:51 +02:00
Jonas Höglund
3292b0e782 Update feed [ feed_inteno_packages ] package [ brcmslic ]
-------------------------------------------------------------------------------
* 837ec19 Set countries from brcm_countries.h
-------------------------------------------------------------------------------
commit 837ec19e37650e424e77c921672a0806e198ba7b
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-10-03 15:37:20 +0200

    Set countries from brcm_countries.h

Base directory -> /
 src/Makefile | 29 +----------------------------
 src/endpt.c  |  1 +
 src/main.c   |  7 ++++---
 3 files changed, 6 insertions(+), 31 deletions(-)
-------------------------------------------------------------------------------
2017-10-04 12:37:01 +02:00
Jonas Höglund
4f78d16f9a Update feed [ feed_inteno_packages ] package [ brcmslic ]
-------------------------------------------------------------------------------
* 5202450 Only signal dialtone once
* 80a6420 Dialtone
* 2b6571d Ringing
* 09cf2ef Create connection
* 3f84f6b Shut down cleanly
* bbcb279 Get nr of endpoints
* c903329 Only initialize the SLIC:s
* b833e8a Create endpoints
* 8fd381a Init endpoint
-------------------------------------------------------------------------------
commit 520245066af315dde9009cd26a306f223c4a8961
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-10-02 17:30:12 +0200

    Only signal dialtone once

Base directory -> /
 src/endpt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 80a642078d1a097f19d52b149601604756021927
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-28 17:46:06 +0200

    Dialtone

Base directory -> /
 src/endpt.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit 2b6571dbef4f8876ad10e142f27ec2b88b7ff549
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-28 17:31:10 +0200

    Ringing

Base directory -> /
 src/endpt.c | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit 09cf2ef441d108e53bef812f4e4383e12db0d827
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-28 16:48:38 +0200

    Create connection

Base directory -> /
 src/endpt.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 81 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
commit 3f84f6b7d00bdda5bd9f2de055fcf33f9af4c932
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-28 14:09:24 +0200

    Shut down cleanly

Base directory -> /
 src/endpt.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
-------------------------------------------------------------------------------
commit bbcb279a85e48b4eb033fbf86401ad3def1658dc
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-28 11:35:39 +0200

    Get nr of endpoints

Base directory -> /
 src/endpt.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit c9033292674abc478b7bd2c70619af74426c8e9f
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-28 10:45:30 +0200

    Only initialize the SLIC:s

Base directory -> /
 src/endpt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit b833e8ac64167933c998468d1bfd77eb40661cb4
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-27 17:55:20 +0200

    Create endpoints

Base directory -> /
 src/endpt.c | 9 +++++++++
 1 file changed, 9 insertions(+)
-------------------------------------------------------------------------------
commit 8fd381ae3ddc1218aadf95b86f1da5f0563221a6
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-27 17:15:58 +0200

    Init endpoint

Base directory -> /
 src/Makefile |  1 +
 src/endpt.c  | 11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-10-04 12:37:01 +02:00
Jonas Höglund
dc23894ad1 Update feed [ feed_inteno_packages ] package [ brcmslic ]
-------------------------------------------------------------------------------
* 4dd8c50 Endpoint init
* 88bff50 Add endpt test app
* c669442 Detect offhook
* a6dc78d Set up polling
-------------------------------------------------------------------------------
commit 4dd8c50ab8f107bd757ff7ece5f6c17b790201b3
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-26 14:52:48 +0200

    Endpoint init

Base directory -> /
 src/Makefile | 67 ++++++++++++++++++++++++++----------------------------------
 src/endpt.c  | 17 ++++++++++++++-
 2 files changed, 45 insertions(+), 39 deletions(-)
-------------------------------------------------------------------------------
commit 88bff50b4f9a11556a00dd9a6237af4e48751b4e
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-22 16:21:57 +0200

    Add endpt test app

Base directory -> /
 src/Makefile |  6 ++++++
 src/endpt.c  | 11 +++++++++++
 2 files changed, 17 insertions(+)
-------------------------------------------------------------------------------
commit c669442f060ee302c5e50d6d0a941a38528e4e87
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-22 16:20:24 +0200

    Detect offhook

Base directory -> /
 src/main.c | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit a6dc78d915b726a3804d2572a80247f6a2adf2ea
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-20 09:53:07 +0200

    Set up polling

Base directory -> /
 src/main.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 65 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
2017-10-04 12:37:01 +02:00
Jonas Höglund
22c139da7b Update feed [ feed_inteno_packages ] package [ brcmslic ]
-------------------------------------------------------------------------------
* c3e574f We don't seem to need to enable slics
* a01ac94 Power on slic
* 09eb0d3 Init slic
-------------------------------------------------------------------------------
commit c3e574fab047a95893e1b8526c65656bb05684b5
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-18 17:05:35 +0200

    We don't seem to need to enable slics

Base directory -> /
 src/main.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit a01ac94ff6b8ce391a451fd4a5316dc45b1f2870
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-18 16:43:43 +0200

    Power on slic

Base directory -> /
 src/main.c | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
-------------------------------------------------------------------------------
commit 09eb0d33e15a2a4f369fe02b7af02b8e4187729f
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-09-18 14:52:28 +0200

    Init slic

Base directory -> /
 src/Makefile | 44 +++++++++++++++++++++++++++++++++++++++++++-
 src/main.c   | 30 +++++++++++++++++++++++++++++-
 2 files changed, 72 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-10-04 12:37:01 +02:00
Jonas Höglund
9af7c41588 Add new brcmslic package 2017-10-04 12:36:53 +02:00
Sukru Senli
9948080efe Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 7964428 network: overwrite macaddress of repeated clients and tag them as repeated
* 2ed8d81 Revert "remove the duplicate clients that have half mac mangled by the repeater"
* 5c7f00e remove the duplicate clients that have half mac mangled by the repeater
-------------------------------------------------------------------------------
commit 7964428754135891ce3a88c0ad6f8c44033dfb0e
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-10-02 10:25:11 +0200

    network: overwrite macaddress of repeated clients and tag them as repeated

Base directory -> /
 network.c | 27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 2ed8d8165fe7e7c65c052de1285f6d914755da49
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-29 18:34:16 +0200

    Revert "remove the duplicate clients that have half mac mangled by the
    repeater"

    This reverts commit 5c7f00e565a29eb2f9b3ccdc8107a5a86d0aebd4.

Base directory -> /
 network.c | 28 +---------------------------
 1 file changed, 1 insertion(+), 27 deletions(-)
-------------------------------------------------------------------------------
commit 5c7f00e565a29eb2f9b3ccdc8107a5a86d0aebd4
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-29 15:45:51 +0200

    remove the duplicate clients that have half mac mangled by the repeater

Base directory -> /
 network.c | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-10-02 11:38:55 +02:00
Ionut-Alex Oprea
170264bc5d Update feed [ feed_inteno_packages ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* ece0282 fix memory leak
-------------------------------------------------------------------------------
commit ece02822d74c2d9e4be4ebd3ebef4e4a3f57e05d
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-28 19:29:27 +0200

    fix memory leak

Base directory -> /
 src/catv.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
2017-09-28 19:30:51 +02:00
Ionut-Alex Oprea
5373a52046 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 4806a53 fix errors reported by cppcheck
*   f77f333 Merge branch 'bridge_port_no' into devel
|\
| * 677bd87 use the bridge and bridge_port structures to find where the clients are connected
| * a3af3da add _get functions for bridge and bridge_port
| * 28a5d50 load the bridges information on startup
| * 82cae47 release the mutex for the bridges
| * 9eab326 fix the bridge_port cleanup
| * ad66e16 fix the code for the lists
| * 55eb4c6 make the code compile
| * 0f2d19e fixed some bugs
| * eafd6e3 debug print
| * 64c8d51 trigger the bridges_load
| * d5d5f41 fix errors reported by checkpatch.pl
| * 108129e bridge_port functions
| * 99e0bd6 more work on the bridge
| * 2cb1cb0 working on bridge ports etc.
|/
* 2270bc8 fix ws error
* 08e8d5e use only one curly bracket in #if so the editors don't get confused
* 542b049 remove redundant variable
-------------------------------------------------------------------------------
commit 4806a53412b7368dd9b46c2c0ae3f4601dad6493
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-28 18:39:23 +0200

    fix errors reported by cppcheck

Base directory -> /
 broadcom.c |  4 ++--
 dropbear.c | 10 +++++-----
 dumper.c   |  2 +-
 port.c     | 12 +++++++-----
 wps.c      |  4 ++--
 5 files changed, 17 insertions(+), 15 deletions(-)
-------------------------------------------------------------------------------
commit f77f333032cf23c1ead28b8efb497cac04f6d060
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-28 18:23:34 +0200

    Merge branch 'bridge_port_no' into devel

Base directory -> /
 network.c |  18 ++---
 port.c    | 251 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 port.h    |  42 +++++++++++
 questd.c  |   1 +
 4 files changed, 302 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit 677bd87f53d4016fa6539f524e01abff8da1a7da
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-28 17:37:21 +0200

    use the bridge and bridge_port structures to find where the clients are
    connected

Base directory -> /
 network.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit a3af3da42c67765eb5765527148057464f408a5c
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-28 17:36:04 +0200

    add _get functions for bridge and bridge_port

Base directory -> /
 port.c | 28 ++++++++++++++++++++++++++++
 port.h |  4 ++++
 2 files changed, 32 insertions(+)
-------------------------------------------------------------------------------
commit 28a5d503c19d3831bdfa6474b34a2fd89295f056
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-28 17:35:14 +0200

    load the bridges information on startup

Base directory -> /
 questd.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
commit 82cae47ca0b607d67d774ffd9d0b02aed2e46818
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-27 19:47:26 +0200

    release the mutex for the bridges

Base directory -> /
 port.c | 14 +++++++-------
 port.h |  5 +++--
 2 files changed, 10 insertions(+), 9 deletions(-)
-------------------------------------------------------------------------------
commit 9eab326f6a4536af92c1081c49db81a44fbced7b
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-27 19:34:10 +0200

    fix the bridge_port cleanup

Base directory -> /
 port.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit ad66e16811f3793dff88524ce83ee7abae4237dd
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-27 19:27:52 +0200

    fix the code for the lists

Base directory -> /
 port.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit 55eb4c6cf4227ad70a3f4ff1c04e65f07733d90d
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-27 17:37:23 +0200

    make the code compile

Base directory -> /
 port.c | 17 +++++++++--------
 port.h |  4 ++--
 2 files changed, 11 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit 0f2d19e976bd285ddeb94a85404990c7630a8c01
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-27 16:26:52 +0200

    fixed some bugs

Base directory -> /
 port.c | 34 +++++++++++++++++-----------------
 port.h |  7 ++++---
 2 files changed, 21 insertions(+), 20 deletions(-)
-------------------------------------------------------------------------------
commit eafd6e391ebadee424d8144ce754b2a2c4df47b4
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-27 14:16:13 +0200

    debug print

Base directory -> /
 port.c | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
commit 64c8d518d5c4cbc8ab846018672fd7215130611b
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-27 14:15:51 +0200

    trigger the bridges_load

Base directory -> /
 network.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
commit d5d5f41aa51533911665bd0a3117d62289aaec82
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-27 14:00:30 +0200

    fix errors reported by checkpatch.pl

Base directory -> /
 port.c | 17 +++++++++--------
 port.h | 10 +++++-----
 2 files changed, 14 insertions(+), 13 deletions(-)
-------------------------------------------------------------------------------
commit 108129e41d0c37646c62597c422ad4298ce2d780
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-27 13:51:19 +0200

    bridge_port functions

Base directory -> /
 port.c | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++---------------
 port.h |   5 ++-
 2 files changed, 121 insertions(+), 34 deletions(-)
-------------------------------------------------------------------------------
commit 99e0bd6acff2f4f2826c44b782b1006b642a7891
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-26 16:43:02 +0200

    more work on the bridge

Base directory -> /
 port.c | 160 ++++++++++++++++++++++++++++++++++++++++++++++-------------------
 port.h |  15 +++++++
 2 files changed, 128 insertions(+), 47 deletions(-)
-------------------------------------------------------------------------------
commit 2cb1cb01d5f7bb9714c5209907ad801927239e02
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-21 17:10:18 +0200

    working on bridge ports etc.

Base directory -> /
 port.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 port.h | 18 +++++++++++++++++
 2 files changed, 90 insertions(+)
-------------------------------------------------------------------------------
commit 2270bc854bcddd4ec5c531ed2e9264938dd75ef7
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-28 10:57:05 +0200

    fix ws error

Base directory -> /
 network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 08e8d5ee3fd19ab10acec4bf0b0436a511d90828
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-28 10:56:38 +0200

    use only one curly bracket in #if so the editors don't get confused

Base directory -> /
 network.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 542b0497aa088ce202e34f092e78a677f81cbd20
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2017-09-28 10:42:26 +0200

    remove redundant variable

Base directory -> /
 network.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2017-09-28 19:08:03 +02:00
Sukru Senli
4e26e587b4 icwmp-3.0-2017-09-28 2017-09-28 16:25:40 +02:00
Kenneth Johansson
529dad8737 Update feed [ feed_inteno_packages ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 6be24af Wrong variable used for storing string.
-------------------------------------------------------------------------------
commit 6be24afc3c0422815ddd30f07811ee3eae3a9154
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-09-28 14:48:26 +0200

    Wrong variable used for storing string.

Base directory -> /
 src/button.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-09-28 14:48:52 +02:00
Kenneth Johansson
9df7cab0b4 Update feed [ feed_inteno_packages ] package [ u-boot ]
-------------------------------------------------------------------------------
* f502d1b Add support for y3 images.
* 21fa9cc rename y2image command to yimage
-------------------------------------------------------------------------------
commit f502d1b589f14142bf7d7719e8434014f180d03f
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-09-27 18:22:33 +0200

    Add support for y3 images.

Base directory -> /
 board/inteno/ex400/ex400_setup            |  4 +-
 board/inteno/ex400/httpd.c                |  2 +-
 board/inteno/ex400/production/ex400_setup |  4 +-
 board/inteno/ex400/y_image.c              | 65 +++++++++++++++++++++++--------
 4 files changed, 53 insertions(+), 22 deletions(-)
-------------------------------------------------------------------------------
commit 21fa9cc7a1ccd18e83e7803e01de4c162d2731b1
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-09-27 18:21:01 +0200

    rename y2image command to yimage

Base directory -> /
 board/inteno/ex400/Makefile   |   2 +-
 board/inteno/ex400/y2_image.c | 219 ----------------------------------------
 board/inteno/ex400/y_image.c  | 225 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 226 insertions(+), 220 deletions(-)
-------------------------------------------------------------------------------
2017-09-27 18:26:21 +02:00
Kenneth Johansson
cf1a476161 Update feed [ feed_inteno_packages ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 5eaa810 Prevent adding the same button twice.
* d9307f7 if config read from /lib/db/config/hw then do not allow any changes.
* a930a09 Read button config from two places.
-------------------------------------------------------------------------------
commit 5eaa810747ec7c130df2a2e6ac3a1df664c8f06b
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-09-26 19:02:20 +0200

    Prevent adding the same button twice.

Base directory -> /
 src/button.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit d9307f796d8b30170fdff7451c4efc35ed3cd428
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-09-26 18:54:53 +0200

    if config read from /lib/db/config/hw then do not allow any changes.

Base directory -> /
 src/button.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit a930a095a0f2f4a338de846fd5a01de609588365
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-09-26 18:40:05 +0200

    Read button config from two places.

    First read /lib/db/config/hw then /etc/config/button

Base directory -> /
 src/button.c | 317 ++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 182 insertions(+), 135 deletions(-)
-------------------------------------------------------------------------------
2017-09-27 17:01:24 +02:00
Ke Hu
fa7a3e02eb revert changes about LED
delete the file , do not need it any more
2017-09-22 13:39:55 +02:00
Reidar Cederqvist
fe23056560 inteno-netmode: support netmode-conf without band (apply to both) ref #12898 2017-09-21 14:01:48 +02:00
ke.hu
7b1f241dda arm platform led set
disable arm board eg400, dg400 led blinking
2017-09-21 12:05:05 +02:00
Sukru Senli
53ba69c31a Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* a8d02b0 router.network: do not show repeated clients with all true
-------------------------------------------------------------------------------
commit a8d02b0010b637d50f02a4a7cf33a9fcda0f0aab
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-21 10:43:19 +0200

    router.network: do not show repeated clients with all true

Base directory -> /
 network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-09-21 10:43:38 +02:00
ke.hu
889a681b57 led config fix
setting led for all mips platform based on BCM
2017-09-21 10:04:58 +02:00
Erik Horemans
8239f1d6ec new ice-client 5.0.0-RC6 2017-09-21 09:24:21 +02:00
ke.hu
0899b8c4ab Led blinking stop
stop sw controlled blinking before peripheral manager take control
2017-09-21 09:16:55 +02:00
Sukru Senli
53985c2411 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 112d30f router.network: all true: consider the case if uplink is wireless
-------------------------------------------------------------------------------
commit 112d30f92fdaa1617d843dbaab26845039c40ce6
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-20 18:03:33 +0200

    router.network: all true: consider the case if uplink is wireless

Base directory -> /
 network.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-09-20 18:03:53 +02:00
Sukru Senli
a90ba2106c Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* e54d40f router.network: all true filter dumps only physically connected devices
-------------------------------------------------------------------------------
commit e54d40f1f96f70104c5d42549fae91bd7298e29f
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-20 16:39:26 +0200

    router.network: all true filter dumps only physically connected devices

Base directory -> /
 network.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2017-09-20 16:43:21 +02:00
Reidar Cederqvist
e21dbcb787 inteno-netmodes: netmode-conf now only deletes correct wifi-ifaces 2017-09-20 11:00:11 +02:00
Sukru Senli
f61a0528f1 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 7c05f36 graphd: iface_traffic: change to tx = downstream, rx = upstream
* 33225dd mediatek: remove channels 116=> from chanlist
-------------------------------------------------------------------------------
commit 7c05f3629207b591714d3dd229a7b3f9b0b7a7d4
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-20 09:18:26 +0200

    graphd: iface_traffic: change to tx = downstream, rx = upstream

Base directory -> /
 graphd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 33225dd3ebd69142928dae174c08b639c92a68e1
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-19 11:54:37 +0200

    mediatek: remove channels 116=> from chanlist

Base directory -> /
 mediatek.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2017-09-20 09:19:47 +02:00
Reidar Cederqvist
a6ed988d81 Revert "inteno-netmode: remove some unused code"
This reverts commit 9162bd9515.
2017-09-20 09:11:29 +02:00
Reidar Cederqvist
9162bd9515 inteno-netmode: remove some unused code 2017-09-19 17:33:33 +02:00
Sukru Senli
e29a0c8b55 inteno-netmodes: wireless config: 2.4G radio in automode by default 2017-09-19 16:39:28 +02:00
Sukru Senli
57cd21ac6f layer2interface: add VDSL 35b support 2017-09-19 16:29:03 +02:00
Sukru Senli
73ecd33a20 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 33225dd mediatek: remove channels 116=> from chanlist
-------------------------------------------------------------------------------
commit 33225dd3ebd69142928dae174c08b639c92a68e1
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-19 11:54:37 +0200

    mediatek: remove channels 116=> from chanlist

Base directory -> /
 mediatek.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2017-09-19 11:55:19 +02:00
Sukru Senli
9456c26510 layer2interface: anywan priority ptm>atm>eth 2017-09-19 09:19:28 +02:00
Anjan Chanda
ab9ec9002b Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 1e38a65 wireless: mtk: fix channel bandwidth reporting
* 9cb2602 show macaddress of client for client move events
* 9641e64 port.c: fix port status call for eg400
* 069a557 init bluf after loading dsl stats
* f1bb6a5 check bridge index correctly for eth connected devices
* bb8fdf1 router.network: clients method can show all discoverd devices with all filter
* f2d8588 wireless: mtk: fix tx/rx data rates and counters
* de2fe8a wireless: mtk rai0 is AC
* 96477c3 port: add up to all ports when router.ports status is called without argument
-------------------------------------------------------------------------------
commit 1e38a650e55e3a5316272d9d2bd809bff3af1bbf
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-09-15 16:22:45 +0530

    wireless: mtk: fix channel bandwidth reporting

Base directory -> /
 mediatek.c | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit 9cb26024d8dd608c4763386d124ab4eb2cde84bb
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-15 09:32:27 +0200

    show macaddress of client for client move events

Base directory -> /
 network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 9641e647099660df80e829e1bd5ece92d1271c11
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-09-06 09:37:33 +0200

    port.c: fix port status call for eg400

Base directory -> /
 port.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 069a557d47e239ee09d559c37ae8dd617b577bc5
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-08-30 17:42:33 +0200

    init bluf after loading dsl stats

Base directory -> /
 dsl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit f1bb6a5e799ed209a61f754f825f8bd2cb892193
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-08-30 11:31:44 +0200

    check bridge index correctly for eth connected devices

Base directory -> /
 network.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit bb8fdf1286bd4ec0375c01c69cd9fdc1a48b6310
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-07-06 15:44:18 +0200

    router.network: clients method can show all discoverd devices with all
    filter

Base directory -> /
 network.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
 network.h |  1 +
 2 files changed, 62 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit f2d85888a980cb8a30f9a0a497a7bfecadf42edb
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-08-23 19:44:02 +0530

    wireless: mtk: fix tx/rx data rates and counters

Base directory -> /
 mediatek.c | 241 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 mediatek.h |  45 ++++++++----
 2 files changed, 267 insertions(+), 19 deletions(-)
-------------------------------------------------------------------------------
commit de2fe8abc0187f1ae9710b472c43c401404df16b
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-08-23 10:54:40 +0200

    wireless: mtk rai0 is AC

Base directory -> /
 wireless.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit 96477c386daec724d2d59a0ccdb9660492bc3673
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-07-10 14:56:39 +0200

    port: add up to all ports when router.ports status is called without
    argument

Base directory -> /
 port.c | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
2017-09-15 16:57:53 +05:30
Sukru Senli
7afb317d39 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 9cb2602 show macaddress of client for client move events
-------------------------------------------------------------------------------
commit 9cb26024d8dd608c4763386d124ab4eb2cde84bb
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-15 09:32:27 +0200

    show macaddress of client for client move events

Base directory -> /
 network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-09-15 09:48:10 +02:00
Reidar Cederqvist
688df72baa inteno-netmode: fixe so that all wifi-ifac is deleted as they should 2017-09-14 10:22:42 +02:00
Erik Horemans
d000b5e27b new ice-client R5.0.0-RC4 2017-09-12 10:06:02 +02:00
Sukru Senli
3287ffb8d0 icwmp-3.0-2017-09-08 2017-09-11 16:30:07 +02:00
Erik Horemans
6e150e61fe new ice-client R5.0.0-RC3 2017-09-08 10:02:50 +02:00
Sukru Senli
40510c4d74 icwmp-3.0-2017-09-06 2017-09-07 09:01:22 +02:00
Sukru Senli
de73749392 inteno-netmodes: compare with correct mode 2017-09-06 12:28:22 +02:00
Reidar Cederqvist
7f0409a57a Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 9641e64 port.c: fix port status call for eg400
-------------------------------------------------------------------------------
commit 9641e647099660df80e829e1bd5ece92d1271c11
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-09-06 09:37:33 +0200

    port.c: fix port status call for eg400

Base directory -> /
 port.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-09-06 09:39:54 +02:00
Reidar Cederqvist
79a8179842 port_management: fix for eg400, need testing 2017-09-05 15:32:33 +02:00
Sukru Senli
a537a7e3f3 Update feed [ feed_inteno_packages ] package [ icwmp ]
-------------------------------------------------------------------------------
* 7606d45 conf_backup: rm -> rm -f
-------------------------------------------------------------------------------
commit 7606d45f5faf3348f84f9a290d22855ba5664d21
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-09-04 16:04:56 +0200

    conf_backup: rm -> rm -f

Base directory -> /
 scripts/functions/conf_backup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-09-05 15:20:36 +02:00
Sukru Senli
16a037f596 inteno-netmodes: stop omcproxy in repeater mode 2017-09-05 09:36:50 +02:00
Erik Horemans
8a7ebb7354 new ice-client R5.0.0-RC2 2017-09-04 16:22:27 +02:00
Sukru Senli
43750b3ac6 icwmp-3.0-2017-08-28 2017-09-04 09:45:13 +02:00
Erik Horemans
67cb7c766d correct package version ice-client 2017-09-04 09:40:42 +02:00
Reidar Cederqvist
cd378fd709 iop: added juci-ice-client to iop default config 2017-08-31 16:04:44 +02:00
Sukru Senli
8d281e2060 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 069a557 init bluf after loading dsl stats
-------------------------------------------------------------------------------
commit 069a557d47e239ee09d559c37ae8dd617b577bc5
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-08-30 17:42:33 +0200

    init bluf after loading dsl stats

Base directory -> /
 dsl.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2017-08-30 17:43:10 +02:00
Erik Horemans
910cda2b26 new ice-client R5.0.0-RC1 2017-08-30 16:10:01 +02:00
Sukru Senli
b7dd3bf6ad Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* f1bb6a5 check bridge index correctly for eth connected devices
-------------------------------------------------------------------------------
commit f1bb6a5e799ed209a61f754f825f8bd2cb892193
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-08-30 11:31:44 +0200

    check bridge index correctly for eth connected devices

Base directory -> /
 network.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2017-08-30 12:57:51 +02:00
Sukru Senli
60980ab5a0 inteno-netmodes: make netmode-discover executable 2017-08-28 18:08:21 +02:00
Sukru Senli
c1b5bb5e7a Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* bb8fdf1 router.network: clients method can show all discoverd devices with all filter
* f2d8588 wireless: mtk: fix tx/rx data rates and counters
-------------------------------------------------------------------------------
commit bb8fdf1286bd4ec0375c01c69cd9fdc1a48b6310
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-07-06 15:44:18 +0200

    router.network: clients method can show all discoverd devices with all
    filter

Base directory -> /
 network.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
 network.h |  1 +
 2 files changed, 62 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit f2d85888a980cb8a30f9a0a497a7bfecadf42edb
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-08-23 19:44:02 +0530

    wireless: mtk: fix tx/rx data rates and counters

Base directory -> /
 mediatek.c | 241 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 mediatek.h |  45 ++++++++----
 2 files changed, 267 insertions(+), 19 deletions(-)
-------------------------------------------------------------------------------
2017-08-28 17:27:10 +02:00
Sukru Senli
8ecc76b8d6 inteno-netmodes: netmode-discover functionality for discovering devices in repeater mode 2017-08-28 17:25:41 +02:00
Sukru Senli
bb6b71445c fping: add package 2017-08-28 16:23:19 +02:00
Jonas Höglund
b1ee0e5e43 Fix mtk-bndstrg build failure 2017-08-28 13:07:13 +02:00
Sukru Senli
8a7c1d05b4 icwmp-3.0-2017-08-25 2017-08-28 12:57:40 +02:00
Jonas Höglund
26f704b4d2 Add dg400primeb board 2017-08-25 09:51:16 +02:00
Omar
555ee900cb TR064 for openwrt: release 1.0 2017-08-23 17:18:37 +01:00
Sukru Senli
64c24f263d Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* de2fe8a wireless: mtk rai0 is AC
* 96477c3 port: add up to all ports when router.ports status is called without argument
-------------------------------------------------------------------------------
commit de2fe8abc0187f1ae9710b472c43c401404df16b
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-08-23 10:54:40 +0200

    wireless: mtk rai0 is AC

Base directory -> /
 wireless.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit 96477c386daec724d2d59a0ccdb9660492bc3673
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-07-10 14:56:39 +0200

    port: add up to all ports when router.ports status is called without
    argument

Base directory -> /
 port.c | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
2017-08-23 10:58:30 +02:00
Sukru Senli
e3386e918f Update feed [ feed_inteno_packages ] package [ mtk-bndstrg ]
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
2017-08-22 11:45:21 +02:00
Sukru Senli
d7f5399107 icwmp-3.0-2017-08-21 2017-08-22 10:10:18 +02:00
Sukru Senli
e98cbe3873 inteno-netmodes: add bandsteering and apsteering sections to wireless configs 2017-08-22 09:57:01 +02:00
Sukru Senli
f0e4f6a835 iop: config: select ppptp 2017-08-21 15:55:49 +02:00
Reidar Cederqvist
6afd37f4d1 inteno-netmodes: added firewall reload to 01-netmode-handler hotplug/iface script 2017-08-18 17:18:07 +02:00
Sukru Senli
9d249ca9ef icwmp-3.0-2017-08-10 2017-08-14 13:33:16 +02:00
Kenneth Johansson
b44a150c97 genereate_tarballs: check for the correct name. 2017-08-09 13:30:58 +02:00
Kenneth Johansson
8e5040c66a change name of bcmopen tar file. 2017-08-08 17:10:09 +02:00
Kenneth Johansson
4eefa9129a add f104 card 2017-08-07 16:54:34 +02:00
Erik Horemans
5c267b8d63 new ice-client R4.4.0-RC9 2017-07-25 13:24:31 +02:00
Jonas Höglund
159449d6fe Always set DEVEL=y
We need this for the LOCALMIRROR variable to be set correctly by defconfig.
2017-07-17 11:25:55 +02:00
Anjan Chanda
1efd84e640 Update feed [ feed_inteno_packages ] package [ mtk-bndstrg ]
-------------------------------------------------------------------------------
* dc542ed mtk-bndstrg: remove 'bndstrg' executable from git control
* 77f0c67 mtk-bndstrg: add more debug messages
* 7563a42 mtk-bndstrg: cleanup and refactor periodic exec loop
* 22161ce mtk-bndstrg: don't lookup nvram to decide clients' connection
* 91ae9ce mtk-bndstrg: enhance dynamic steering between 2.4G and 5G
* a531de6 mtk-bndstrg: fix client's state in DEFAULT_5G condition check
* 017d440 mtk-bndstrg: fix client's state checking in update_entry
* 135215d mtk-bndstrg: consider total frames in BAND_PERSIST decision
* 286fd5d mtk-bndstrg: change Hold time and low Rssi threshold default values
* 22fabf5 mtk-bndstrg: pass updated Control_Flags in CLI_ADD msg
* cd248e3 mtk-bndstrg: Skip checking nss and load-balance rules
* 22a9ab8 mtk-bndstrg: don't exit daemon prematurely
* da5014c mtk-bndstrg: change 'TableIndex' data type
* a1c0eda mtk-bndstrg: initialize bndstrg message buffers to zero
* cf9bd08 mtk-bndstrg: add improved debug messages
* 4f5528e mtk-bndstrg: improve debugging macros
* 484923b mtk-bndstrg: Update code to version bndstrg_5030
-------------------------------------------------------------------------------
commit dc542ed2f07ee0ff6966d498665c1d4ea571f06e
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-13 14:39:22 +0530

    mtk-bndstrg: remove 'bndstrg' executable from git control

Base directory -> /
 bndstrg | Bin 163132 -> 0 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
-------------------------------------------------------------------------------
commit 77f0c676a4e6c694869f69f0c26ccc5ebc0c27a2
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-13 14:36:21 +0530

    mtk-bndstrg: add more debug messages

Base directory -> /
 bndstrg.c | 34 +++++++++++++++++++++++++++++++---
 1 file changed, 31 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit 7563a429c249dcca4278d71425b0915cfc290045
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-13 14:34:43 +0530

    mtk-bndstrg: cleanup and refactor periodic exec loop

Base directory -> /
 bndstrg.c | 84 +++++++++++++++++++++++++--------------------------------------
 1 file changed, 33 insertions(+), 51 deletions(-)
-------------------------------------------------------------------------------
commit 22161cedb798f089037240605512d085e5a2fdcc
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-13 14:29:15 +0530

    mtk-bndstrg: don't lookup nvram to decide clients' connection

Base directory -> /
 bndstrg.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 91ae9ce4615d2927d4c6e67f8846333ffd766334
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-13 14:21:53 +0530

    mtk-bndstrg: enhance dynamic steering between 2.4G and 5G

Base directory -> /
 bndstrg.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++------
 bndstrg.h |  2 ++
 2 files changed, 60 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
commit a531de6e3cc226567476e0321c56fede7d069fc8
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-13 14:16:24 +0530

    mtk-bndstrg: fix client's state in DEFAULT_5G condition check

Base directory -> /
 bndstrg.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 017d4403923544c7f987e69ad24930b70d0c1b26
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-13 14:14:08 +0530

    mtk-bndstrg: fix client's state checking in update_entry

Base directory -> /
 bndstrg.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 135215d98dd0b1eca4b55dddf42e44c6779a5fe2
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-13 14:11:03 +0530

    mtk-bndstrg: consider total frames in BAND_PERSIST decision

Base directory -> /
 bndstrg.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 286fd5d32526217109b2064abbdedd13db67b185
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-12 15:02:31 +0530

    mtk-bndstrg: change Hold time and low Rssi threshold default values

Base directory -> /
 bndstrg.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 22fabf524f6101eb3ed12ff1adf2d3d10fe5528f
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-12 14:58:56 +0530

    mtk-bndstrg: pass updated Control_Flags in CLI_ADD msg

Base directory -> /
 driver_wext.c | 3 +++
 1 file changed, 3 insertions(+)
-------------------------------------------------------------------------------
commit cd248e3aadba9568ccdb9531fe1335a575d0f39d
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-12 14:54:01 +0530

    mtk-bndstrg: Skip checking nss and load-balance rules

Base directory -> /
 bndstrg.c | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
commit 22a9ab84a142aae28ca35aaff2443a125aa6422b
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-12 14:21:24 +0530

    mtk-bndstrg: don't exit daemon prematurely

Base directory -> /
 bndstrg.c | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
commit da5014ce87587c075a557f20d9743b67b243487c
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-12 14:16:03 +0530

    mtk-bndstrg: change 'TableIndex' data type

Base directory -> /
 bndstrg.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit a1c0eda897f20b26b86e4a2a587e639b98480d24
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-12 14:08:00 +0530

    mtk-bndstrg: initialize bndstrg message buffers to zero

Base directory -> /
 bndstrg.c     | 2 +-
 driver_wext.c | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit cf9bd084b06e55bfcee30e967450dbe8880fb718
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-12 13:59:57 +0530

    mtk-bndstrg: add improved debug messages

Base directory -> /
 bndstrg.c | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 72 insertions(+), 17 deletions(-)
-------------------------------------------------------------------------------
commit 4f5528e88cd4606043ff7346f5e398dfd6b99a04
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-12 13:43:59 +0530

    mtk-bndstrg: improve debugging macros

Base directory -> /
 bndstrg.c |  5 +++++
 debug.h   | 27 +++++++++++++++++++++++++++
 main.c    |  5 ++++-
 3 files changed, 36 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 484923b663d03a61a198bcde3cf5364ab08d0ace
Author: Anjan Chanda <anjan.chanda@inteno.se>
Date: 2017-07-12 13:28:17 +0530

    mtk-bndstrg: Update code to version bndstrg_5030

Base directory -> /
 bndstrg       |  Bin 160584 -> 163132 bytes
 bndstrg.c     | 1046 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
 bndstrg.h     |  140 ++++++--
 debug.h       |    2 +-
 driver.h      |    2 +
 driver_wext.c |   34 +-
 main.c        |    4 +-
 7 files changed, 1141 insertions(+), 87 deletions(-)
-------------------------------------------------------------------------------
2017-07-13 15:22:03 +05:30
Sukru Senli
d41add13ac icwmp-3.0-2017-07-10 2017-07-12 10:23:32 +02:00
Sukru Senli
e9cfdefff4 iop: genconfig: remove build_dir not found warning 2017-07-12 10:17:44 +02:00
Reidar Cederqvist
6a685d0806 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 4f85e35 port: fixe critical bug in ports call
-------------------------------------------------------------------------------
commit 4f85e35bf0d8c13e7760b644b7779ced95802f8e
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-07-10 14:48:27 +0200

    port: fixe critical bug in ports call

Base directory -> /
 port.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-07-10 14:48:51 +02:00
Reidar Cederqvist
cd7b729f54 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* ece2add ports: port status with bridge whithout valid uplink port now fail
* 38df11e network/arping: remove warnign from arping fuctionality
* f480efe port/network: fixed bug introduced in last commit
* a37af52 port: added up: true/false to port status call
* 3bb7c24 netchec: arping device support
-------------------------------------------------------------------------------
commit ece2add7b87212c1fe93487405584d65ca665839
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-07-10 12:15:55 +0200

    ports: port status with bridge whithout valid uplink port now fail

Base directory -> /
 port.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 38df11e6d8a3d1b302dbf0648b734221ad8aada3
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-07-10 12:01:42 +0200

    network/arping: remove warnign from arping fuctionality

Base directory -> /
 arping.c   | 2 +-
 netcheck.c | 6 +++---
 network.c  | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
commit f480efe542b3253a90d461907fb9433d16ae3885
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-07-10 11:38:47 +0200

    port/network: fixed bug introduced in last commit

Base directory -> /
 network.c | 6 +++---
 port.c    | 5 +++++
 2 files changed, 8 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit a37af52a10639171eb486de31c57583b335646ac
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-07-10 11:18:31 +0200

    port: added up: true/false to port status call

Base directory -> /
 port.c | 21 +++++++++++++++------
 port.h |  2 +-
 2 files changed, 16 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit 3bb7c24f9bba9a94d5e701906191ccb610302254
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-07-06 10:43:02 +0200

    netchec: arping device support

Base directory -> /
 netcheck.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 47 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
2017-07-10 12:16:10 +02:00
Reidar Cederqvist
d8f01e711e Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* f480efe port/network: fixed bug introduced in last commit
-------------------------------------------------------------------------------
commit f480efe542b3253a90d461907fb9433d16ae3885
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-07-10 11:38:47 +0200

    port/network: fixed bug introduced in last commit

Base directory -> /
 network.c | 6 +++---
 port.c    | 5 +++++
 2 files changed, 8 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2017-07-10 11:39:23 +02:00
Reidar Cederqvist
9189f9d140 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* a37af52 port: added up: true/false to port status call
* 3bb7c24 netchec: arping device support
-------------------------------------------------------------------------------
commit a37af52a10639171eb486de31c57583b335646ac
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-07-10 11:18:31 +0200

    port: added up: true/false to port status call

Base directory -> /
 port.c | 21 +++++++++++++++------
 port.h |  2 +-
 2 files changed, 16 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit 3bb7c24f9bba9a94d5e701906191ccb610302254
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-07-06 10:43:02 +0200

    netchec: arping device support

Base directory -> /
 netcheck.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 47 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
2017-07-10 11:19:53 +02:00
Kenneth Johansson
519be9e690 genconfig: ignore missing files.
Do not print out error if the files do not exist.
2017-07-07 15:00:52 +02:00
Ronny Nilsson
32398552f4 busybox: some of the kernel module loading utilities
were missing. Half of them were enabled, why not all?
2017-07-07 13:43:36 +02:00
Sukru Senli
94995450c1 iop: genconfig: do not attempt to clone if no access to customerconfigs 2017-07-06 14:19:24 +02:00
Alex Oprea
69f4f58cbd iop: ssh_sysupgrade_latest: accept y3 2017-07-05 15:18:50 +02:00
Sukru Senli
3a4ec3b3c0 inteno-netmodes: bring uplink wifi interface up/down if broadcom 2017-07-05 15:05:16 +02:00
Kenneth Johansson
5d88a8b6d1 correct variable name. 2017-07-05 13:45:33 +02:00
Sukru Senli
62797342b9 inteno-netmodes: reload questd network after changing mode 2017-07-04 13:50:45 +02:00
Sukru Senli
acc3be969d ice-client: set passwords via uci 2017-07-04 13:40:05 +02:00
Kenneth Johansson
62d773656c Add Gfast option parsing. 2017-07-03 17:02:54 +02:00
Reidar Cederqvist
e023750469 layer2: add 10-switch file to fix wan-vlan creation 2017-07-03 09:47:34 +02:00
Reidar Cederqvist
610011e141 inteno-netmode: netmode-conf: fixed bug if mode is default empty 2017-06-30 14:54:51 +02:00
Sukru Senli
5583da3e36 icwmp-3.0-2017-06-30 2017-06-30 12:01:07 +02:00
Reidar Cederqvist
0729f895e9 questd: added fix-commit for broadcom builds 2017-06-30 10:55:39 +02:00
Reidar Cederqvist
5626fa7cfd Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 8cd6282 wps: fixed missing if statement
-------------------------------------------------------------------------------
commit 8cd6282bf92a6aec34351069a524d3a0ac5f12f8
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-06-30 10:33:20 +0200

    wps: fixed missing if statement

Base directory -> /
 wps.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
2017-06-30 10:33:54 +02:00
Reidar Cederqvist
ce51bfebef inteno-netmodes: do not copy configs if curmode hasn't changed 2017-06-30 08:59:48 +02:00
Reidar Cederqvist
850a4981bc Update feed [ feed_inteno_packages ] package [ inbd ]
-------------------------------------------------------------------------------
* 92f918d cleaned up the code and fixed warnings
* b1341a6 inbd: wps on success starts a timer that if it fires sets leds.wps to off
-------------------------------------------------------------------------------
commit 92f918d26c0ffc22d1704f5ea6cbb0bd7fdbdab9
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-06-28 16:25:57 +0200

    cleaned up the code and fixed warnings

Base directory -> /
 src/inbd.c | 94 +++++++++++++++++++++++++++++---------------------------------
 1 file changed, 44 insertions(+), 50 deletions(-)
-------------------------------------------------------------------------------
commit b1341a60ab2f890aaf092be924b8059c35a4c794
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-06-28 16:22:05 +0200

    inbd: wps on success starts a timer that if it fires sets leds.wps to off

Base directory -> /
 src/inbd.c | 35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-06-30 08:58:28 +02:00
Reidar Cederqvist
583cf0e706 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* a6e8b8c wps: remove setpin and showpin functionality from mediatek
* e8bbdf6 wps: updated checkpin function to use internal math
-------------------------------------------------------------------------------
commit a6e8b8c6c63edc095a3f6d3c99093ca2650b04ee
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-06-30 08:12:18 +0200

    wps: remove setpin and showpin functionality from mediatek

    untill propperly tested

Base directory -> /
 wps.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)
-------------------------------------------------------------------------------
commit e8bbdf6b8a0112641bc82b4ebd94bfad6acbedfd
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-06-29 11:17:07 +0200

    wps: updated checkpin function to use internal math

Base directory -> /
 wps.c | 66 +++++++++++++++++++++---------------------------------------------
 1 file changed, 21 insertions(+), 45 deletions(-)
-------------------------------------------------------------------------------
2017-06-30 08:58:23 +02:00
Reidar Cederqvist
4735181dca questd: updated questd to latest version 2017-06-29 11:02:55 +02:00
Sukru Senli
dbdbc2b7f8 iop: genconfig: allow giving another repo than customerconfigs with -r option 2017-06-29 10:43:41 +02:00
Alex Oprea
c70ba67607 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 41d5633 wps: addjust the status codes so that the gui does not show \"switching to repeater\"
-------------------------------------------------------------------------------
commit 41d563397f936dd7dd6db13d07e44ed9ef86f62a
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-06-28 15:56:24 +0200

    wps: addjust the status codes so that the gui does not show \"switching to
    repeater\"

Base directory -> /
 wps.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
2017-06-28 15:57:38 +02:00
Alex Oprea
98175e38c4 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 81990b3 add even more "inteno" macs/altered macs
* f9a661b wps: fixed router.wps satus on mediatek
* 72b54f3 mediatek: added wl_get_wps_status function
-------------------------------------------------------------------------------
commit 81990b3d4a1510e8f995d253ee47bbc445e1feac
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-06-28 14:22:09 +0200

    add even more "inteno" macs/altered macs

Base directory -> /
 tools.c | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
commit f9a661bbd47358cb42cdca6ec4ae5643f824f809
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-06-28 10:54:19 +0200

    wps: fixed router.wps satus on mediatek

Base directory -> /
 wps.c | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 72b54f3aa8b1793f9129a2374010c2ff871f5e82
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-06-28 10:52:11 +0200

    mediatek: added wl_get_wps_status function

Base directory -> /
 mediatek.c | 64 ++++++++++++++++++++++++++++++++++----------------------------
 mediatek.h |  1 +
 2 files changed, 36 insertions(+), 29 deletions(-)
-------------------------------------------------------------------------------
2017-06-28 14:23:24 +02:00
Sukru Senli
c0bf1be7c1 Revert "inteno-netmodes: prevent fake mode switching"
This reverts commit c730387f5c.
2017-06-27 13:49:01 +02:00
Reidar Cederqvist
48195b582f Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* d053cd4 broadcom.c: changed the wl_get_channel function to use wl_get_bssinfo
-------------------------------------------------------------------------------
commit d053cd4c3411dfc064b5996826420f18a21bc10f
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-06-26 13:15:37 +0200

    broadcom.c: changed the wl_get_channel function to use wl_get_bssinfo

Base directory -> /
 broadcom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-06-26 13:19:18 +02:00
Sukru Senli
da4d852b6e inteno-netmodes: allow user to select repeater mode 2017-06-26 11:41:28 +02:00
Sukru Senli
c730387f5c inteno-netmodes: prevent fake mode switching 2017-06-23 16:50:57 +02:00
Sukru Senli
8bc349b6ef Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 08af87d wificontrol: run apcliconnect very 80 seconds
-------------------------------------------------------------------------------
commit 08af87d010d4e5e1a2d6af1bbfc942ae2f52ab5f
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-06-23 13:07:04 +0200

    wificontrol: run apcliconnect very 80 seconds

Base directory -> /
 wificontrol.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2017-06-23 13:07:51 +02:00
Sukru Senli
dde575f5ea inteno-netmode: flash leds only when changing mode or being configured by master 2017-06-23 11:49:01 +02:00
Alex Oprea
cedf5fb32b Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 45b38f4 network: create a cache for arp
-------------------------------------------------------------------------------
commit 45b38f40e020a6811916afabdb54b100d0659437
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-06-22 21:29:21 +0200

    network: create a cache for arp

Base directory -> /
 network.c | 13 ++++++++++++-
 tools.c   | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools.h   |  7 +++++++
 3 files changed, 78 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-06-22 23:04:31 +02:00
Sukru Senli
2f45a2dc44 inteno-netmodes: add new macaddr to inteno MACs 2017-06-22 18:57:15 +02:00
Alex Oprea
9fd2bfd613 imonitor: set the limit memory for questd at 15MB 2017-06-22 16:37:59 +02:00
Kenneth Johansson
e04a8f0f98 Build natalie-dect single threaded. for real this time. 2017-06-22 16:36:41 +02:00
Sukru Senli
ab34a5ba66 inteno-netmodes: netmode-client-detect: put timed_check to background 2017-06-22 15:25:31 +02:00
Sukru Senli
5c312b3d84 inteno-netmodes: netmode-client-detect subsutition syntax fix 2017-06-22 15:11:15 +02:00
Sukru Senli
425bbafd83 inteno-netmodes: netmode-client-detect: use the last customer network 2017-06-22 15:08:05 +02:00
Sukru Senli
92e23a0bfc inteno-netmodes: netmode-client-detect: do not run timed_check in background 2017-06-22 15:05:17 +02:00
Alex Oprea
34472e7e46 inteno netmodes: fix indentation 2017-06-22 15:01:58 +02:00
Alex Oprea
c9e26055b6 inteno netmodes: generate the creds file before sending it 2017-06-22 15:01:58 +02:00
Alex Oprea
6d38f1ed82 inteno-netmodes: fix the ubus listen call not to end after 30s 2017-06-22 15:01:58 +02:00
Alex Oprea
162f0d444f inteno-netmodes: fix typo 2017-06-22 15:01:58 +02:00
Sukru Senli
cbd72e53d6 icwmp-3.0-2017-06-22 2017-06-22 14:54:54 +02:00
Sukru Senli
3b8f38808d iup: convert DESKEY to HEX format 2017-06-22 12:02:04 +02:00
Jonas Höglund
863eb435a4 Revert "Do not touch boardparams for now"
This reverts commit e50f074740.
2017-06-22 11:08:41 +02:00
Jonas Höglund
e50f074740 Do not touch boardparams for now 2017-06-22 10:32:50 +02:00
Alex Oprea
9c3e1dfc4b inteno-netmodes: flush the ips on br-lan, just in case 2017-06-21 19:27:06 +02:00
Jonas Höglund
4b717763af Build natalie-dect single threaded 2017-06-21 16:23:26 +02:00
Jonas Höglund
d765337e57 Revert "Add natalie-dect as dependency for dectmngr2"
This reverts commit e4b24fda80.
2017-06-21 14:17:28 +02:00
Sukru Senli
e81fd8d0aa iup: fix uci syntax 2017-06-21 13:40:44 +02:00
Sukru Senli
9d0d899f53 iup: use correct uci syntax 2017-06-21 13:19:37 +02:00
Sukru Senli
4ece106cf4 inteno-netmodes: remove F104W from netmodes 2017-06-21 11:38:16 +02:00
Sukru Senli
7e2645e9a4 layer2interface: use hasEthWan to determine if the board has ETH WAN port 2017-06-21 10:29:10 +02:00
Sukru Senli
9e2b2866ef Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* ce16dd5 wificontrol: better handling of leds
-------------------------------------------------------------------------------
commit ce16dd5fabc97f7ea937e0be3eb9c7bda1f1eb0f
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-06-21 09:31:03 +0200

    wificontrol: better handling of leds

Base directory -> /
 wificontrol.c | 66 ++++++++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 47 insertions(+), 19 deletions(-)
-------------------------------------------------------------------------------
2017-06-21 09:32:19 +02:00
Sukru Senli
0a4ddf27e3 inteno-netmodes: ex400 routed mode reboot 0 2017-06-20 18:27:34 +02:00
Jonas Höglund
e4b24fda80 Add natalie-dect as dependency for dectmngr2 2017-06-20 16:40:52 +02:00
Alex Oprea
526051018f iup: ping the name server if the default gateway does not respond 2017-06-19 17:45:11 +02:00
Jonas Höglund
13e2f6a252 Update feed [ feed_inteno_packages ] package [ u-boot ]
-------------------------------------------------------------------------------
* 064c9c3 Shorter timeout after upgrading rescue image
* 008997a Add -f option to rescue command.
* a9619c7 Rescue mode has to reset boot counters.
-------------------------------------------------------------------------------
commit 064c9c30ff159c9bf3fa695baddd54279cd0f062
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-06-19 17:16:48 +0200

    Shorter timeout after upgrading rescue image

Base directory -> /
 board/inteno/ex400/httpd.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 008997a8a559978870849dc82fc6ced4c2eaaa59
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-06-19 15:09:22 +0200

    Add -f option to rescue command.

    This allows it to run without having to push the reset button.

Base directory -> /
 board/inteno/ex400/board.c | 53 +++++++++++++++++++++++++++++++++++-----------
 1 file changed, 41 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
commit a9619c7110586089dc3f9b72391e467e1f40d309
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-06-19 14:58:24 +0200

    Rescue mode has to reset boot counters.

Base directory -> /
 board/inteno/ex400/httpd.c | 4 ++++
 1 file changed, 4 insertions(+)
-------------------------------------------------------------------------------
2017-06-19 17:20:08 +02:00
Jonas Höglund
53398998c2 Force update of uboot 2017-06-19 17:19:18 +02:00
Sukru Senli
364b8483df layer2interface: brcmwifi: set wps_oob_configured to 1 in nvram 2017-06-19 10:07:44 +02:00
Sukru Senli
32573cfa8e inteno-netmodes: blink leds when switching between extender-repeater modes 2017-06-18 16:34:24 +02:00
Sukru Senli
ff051a6aab Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 9493935 mediatek: show encryption correctly for extra SSIDs
-------------------------------------------------------------------------------
commit 9493935b0dea50f372c293aebc8f2d4031765443
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-06-18 15:48:38 +0200

    mediatek: show encryption correctly for extra SSIDs

Base directory -> /
 mediatek.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-06-18 15:48:51 +02:00
Sukru Senli
885baef845 inteno-netmodes: make sure netmode-handler and netmode-conf do not try to switch mode simultaneously 2017-06-18 15:05:51 +02:00
Sukru Senli
e9d413e2db Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* ee5f30c net: make nat table work for MTK
-------------------------------------------------------------------------------
commit ee5f30c04d2f3e48c1ebb02caf3bdbd4efab44c5
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-06-18 12:37:53 +0200

    net: make nat table work for MTK

Base directory -> /
 net.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
-------------------------------------------------------------------------------
2017-06-18 12:38:22 +02:00
Kenneth Johansson
962a09c08e genconfig: also touch boardparms_voice.c. 2017-06-16 11:55:47 +02:00
Jonas Höglund
985d5a9ea2 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 9560e66 Fix reboot logic
-------------------------------------------------------------------------------
commit 9560e66f6a2bd6d9a6d49e1f216aa2ebebdd965a
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-06-16 10:43:47 +0200

    Fix reboot logic

Base directory -> /
 wificontrol.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
-------------------------------------------------------------------------------
2017-06-16 10:44:32 +02:00
Sukru Senli
0e52c823a6 inteno-netmodes: enable beamforming in all modes 2017-06-16 09:31:20 +02:00
Kenneth Johansson
e4f25fa7f0 Add config option for dg400prime. 2017-06-15 15:37:42 +02:00
Sukru Senli
0552dde787 inteno-netmodes: show overview page in GUI when behind public IP 2017-06-15 15:21:25 +02:00
Kenneth Johansson
58201949fc genconfig: trigger a rebuild of bcmkernel if the boardid change.
This was not needed before as only the PROFILE changed the result.
Now also boardid is going to produce a different kernel and CFE on ARM
based socs. So we need to make sure that they are rebuilt even if the new board is using
the same PROFILE.
2017-06-15 14:10:50 +02:00
Sukru Senli
9b1c5e2b64 icwmp: fix for hotplug copy 2017-06-15 13:58:51 +02:00
Sukru Senli
6bdfa81b7e icwmp: copy hotplug script under correct folder 2017-06-15 13:31:38 +02:00
Sukru Senli
e73bba2ae0 icwmp: start with hotplug script 2017-06-15 12:49:57 +02:00
Sukru Senli
68cc112732 inteno-netmodes: WPS pbc enable as AP in repeater/extender mode 2017-06-14 17:52:12 +02:00
Sukru Senli
724ee411fc inteno-netmodes: switch to extender mode if behind non inteno priva IP 2017-06-14 17:44:12 +02:00
Sukru Senli
05ee1c51ad Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* e33c053 wificontrol: If there is an uplink IP address but no connection for 5 minutes, reboot
-------------------------------------------------------------------------------
commit e33c0535c5de324d5a4ba7f43127e7f7058b7c5c
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-06-14 17:36:49 +0200

    wificontrol: If there is an uplink IP address but no connection for 5
    minutes, reboot

Base directory -> /
 wificontrol.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-06-14 17:37:07 +02:00
Sukru Senli
5bdb0e354f iup: get MAC and DESKEY from ubus router.system object instead of /proc/nvram 2017-06-14 17:24:47 +02:00
Erik Horemans
9fc86cf55b new ice-client 4.4.0-RC8 2017-06-14 13:59:54 +02:00
Sukru Senli
75cd1bdaa7 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 22083bc wificontrol: mtk: run ApCliAutoConnect to recover connection to master
-------------------------------------------------------------------------------
commit 22083bc9da6b1354703740b70549d4d0c86edf73
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-06-14 10:25:20 +0200

    wificontrol: mtk: run ApCliAutoConnect to recover connection to master

Base directory -> /
 wificontrol.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
2017-06-14 10:26:16 +02:00
Erik Horemans
b9e558a817 new ice-client R4.4.0-RC7 2017-06-14 09:02:49 +02:00
Sukru Senli
72d4a7f61f inteno-netmodes: netmode-handler: code for handlig non inteno uplink 2017-06-10 14:41:07 +02:00
Sukru Senli
d87d1f01eb inteno-netmode: netmode-handler: if behind private ip which is not inteno device, switch to extender mode 2017-06-10 14:33:40 +02:00
Reidar Cederqvist
456c48dde8 inteno-netmodes: switch to bridge on public ip on wan port 2017-06-10 14:33:38 +02:00
Alex Oprea
d44d9e80b9 inteno-netmodes: shift range hotplug script 2017-06-10 14:06:19 +02:00
Kenneth Johansson
0da93b1d4a Update feed [ feed_inteno_packages ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* a9e0b8e wlctl needs to have the interface as argument.
-------------------------------------------------------------------------------
commit a9e0b8ea80511ef16ef71c59412bcd9b90beb7fe
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-06-09 16:54:25 +0200

    wlctl needs to have the interface as argument.

    On systems with multiple wifi chips we need to specify what chip the led is
    connected to.

    Also fix an issue with address could only be 0-9 and we need 0-31.

Base directory -> /
 src/wlctl_led.c | 26 +++++++++++++++++++-------
 1 file changed, 19 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
2017-06-09 16:54:46 +02:00
Erik Horemans
f8336fba61 new ice-client 4.4.0-RC6 2017-06-09 16:13:31 +02:00
Sukru Senli
342b63160d Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* dedcae9 wireless: assoclist call returns array
-------------------------------------------------------------------------------
commit dedcae9867e6a2973834c506f7dabdcb1706238e
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-06-09 10:00:49 +0200

    wireless: assoclist call returns array

Base directory -> /
 wireless.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-06-09 10:01:09 +02:00
Sukru Senli
23f15ddae5 inteno-netmodes: default network is lan 2017-06-08 14:21:43 +02:00
Alex Oprea
4726ae7734 iop: update_package: use the uppercase N as default value selected 2017-06-08 14:00:04 +02:00
Sukru Senli
c15bf421ba inteno-netmodes: netmode-conf: flash all leds when receiving credentials via zero touch 2017-06-08 12:21:31 +02:00
Sukru Senli
379c263b65 inteno-netmodes: enable wps in mtk routed mode and set channel to auto in repeater modes 2017-06-08 11:25:05 +02:00
Alex Oprea
9ab6046850 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* bc51ae3 sort the macs
* 5e84952 add more "inteno" macs
-------------------------------------------------------------------------------
commit bc51ae35b2aeb09c9264266a3322b7b21bef49c0
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-06-07 17:23:45 +0200

    sort the macs

Base directory -> /
 tools.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit 5e84952cecf4362ce9d3e8f75ae45da49ab5f914
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-06-07 17:13:51 +0200

    add more "inteno" macs

Base directory -> /
 tools.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-06-07 18:48:49 +02:00
Alex Oprea
313f540db8 inteno-netmodes: add more inteno-alike macs 2017-06-07 18:46:03 +02:00
Kenneth Johansson
3821a7a131 Add config option for f104w. 2017-06-07 14:56:01 +02:00
Sukru Senli
84e2181672 icwmp-3.0-2017-06-01 2017-06-01 16:07:52 -07:00
Alex Oprea
b91fff1f9a iup: move some code to /lib/functions/savecfg.sh 2017-06-01 15:38:49 +02:00
Alex Oprea
807f378a1f iup: fix grammar 2017-05-31 20:25:13 +02:00
Alex Oprea
5c91fa5e79 samba3: security patches for CVE-2010-2063 CVE-2010-3069 CVE-2012-1182 2017-05-31 16:50:55 +02:00
Reidar Cederqvist
7a185a0809 iop: genconfig: do not list juci-theme when listing customer boards 2017-05-31 15:53:21 +02:00
Reidar Cederqvist
cb8bb9c127 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 4e1e080 network: made the port statistics long long refs #12135
* 2509608 tools: always null-terminate the output buffer
-------------------------------------------------------------------------------
commit 4e1e080fb8295d89c74abb93e08dcf2f9cc5abbf
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-30 13:17:42 +0200

    network: made the port statistics long long refs #12135

    to hold bigger values than 2Gb

Base directory -> /
 network.h | 12 ++++++------
 port.c    |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit 2509608d33aa5881a71f4794d42e76f3e9926f89
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-05-29 15:09:28 +0200

    tools: always null-terminate the output buffer

Base directory -> /
 tools.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
2017-05-30 13:21:39 +02:00
Sukru Senli
d949cb5228 inteno-netmodes: kill wifi before running wifi reload 2017-05-29 17:10:34 +02:00
Reidar Cederqvist
e733774cd3 layer2interface: broadcom: add support for changing last mac grop refs #12060 2017-05-29 11:00:46 +02:00
Reidar Cederqvist
b7a547c1d6 inteno-netmodes: fixed bug in netmode-conf refs #11988 2017-05-29 10:51:36 +02:00
Sukru Senli
5e860a4734 inteno-netmodes: kill wificontril with -9 if receives public IP 2017-05-24 11:56:42 +02:00
Sukru Senli
22b070d1d2 inteno-netmodes: channel update 2017-05-24 09:56:08 +02:00
Reidar Cederqvist
576e7e56ad inteno-netmodes: from_gui true will go back if connection fails 2017-05-23 16:07:09 +02:00
Reidar Cederqvist
503c9cff2c Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* db68fec wireless: fix incorrect frequency in router.wireless status call
-------------------------------------------------------------------------------
commit db68fecf2de5bbfc94964fedb99c831e9458b00d
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-22 16:59:54 +0200

    wireless: fix incorrect frequency in router.wireless status call

Base directory -> /
 mediatek.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-05-22 17:02:10 +02:00
Alex Oprea
b1c4ae9cae fix grammar 2017-05-20 02:13:15 +02:00
Alex Oprea
be45e11453 remove unnecessary log print 2017-05-19 19:08:37 +02:00
Alex Oprea
0ad3a95b30 netmode: script to simulate power-off hotplug net events
(of course): The event that happened when the router was powered off
	is simulated by this script.
	Triggered by /etc/init.d/done from base-files.
2017-05-19 14:46:24 +02:00
Sukru Senli
136dcee43f icwmp-3.0-2017-05-17 2017-05-18 13:24:42 +02:00
Reidar Cederqvist
26d0f4da51 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 795756e wificontrol: fixed the led_success functionality
-------------------------------------------------------------------------------
commit 795756ec0ef7a602b8cf18de1c0a05b6a4b12065
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 19:59:53 +0200

    wificontrol: fixed the led_success functionality

Base directory -> /
 wificontrol.c | 58 ++++++++--------------------------------------------------
 1 file changed, 8 insertions(+), 50 deletions(-)
-------------------------------------------------------------------------------
2017-05-17 20:07:27 +02:00
Alex Oprea
1d995b4f8a Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* f40e270 client: assoclist: minimize the time that the list is inconsistent
-------------------------------------------------------------------------------
commit f40e270a33ebf85b9ab7737efd10252fc0887266
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-05-17 17:21:35 +0200

    client: assoclist: minimize the time that the list is inconsistent

Base directory -> /
 network.c | 66 +++++++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 45 insertions(+), 21 deletions(-)
-------------------------------------------------------------------------------
2017-05-17 19:03:51 +02:00
Reidar Cederqvist
410dffcdd8 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* a56a65b add more inteno mac addresses
-------------------------------------------------------------------------------
commit a56a65b7cd08c7ca7c9d829ed092aec3dec21925
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-05-17 17:03:56 +0200

    add more inteno mac addresses

Base directory -> /
 tools.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-05-17 17:08:17 +02:00
Reidar Cederqvist
b7a8105b18 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 50eef51 wificontrol: fix bug with setting led_success string
* 510d6c7 Revert "wificontrol: remove unsused variable need_update"
-------------------------------------------------------------------------------
commit 50eef514699450e793fde6d4f92e5f1638914dc1
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 16:58:43 +0200

    wificontrol: fix bug with setting led_success string

Base directory -> /
 wificontrol.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 510d6c7f9957e0ab7961c4cd4b8ad9dc97194f67
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 16:57:00 +0200

    Revert "wificontrol: remove unsused variable need_update"

    This reverts commit ae46c985f3ae2b78072ba492a85bb908f07018fe.

Base directory -> /
 wificontrol.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-05-17 16:59:16 +02:00
Reidar Cederqvist
23577050b5 Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 4d3301d wificontrol: fixed incorrect ifdefs
* 30ae2f3 mediatek: fixed wl_autochannel function
* 5700ea0 wificontrol: Disable and enable apclii0 interface if repeater doesn't connect in 2 min
* 959f1dc wificontrol: do not allow clients to connect to repeater without uplink
* 44f4efe wificontrol: break very long strings into multiple lines
* ba24ba4 add wl_disassociate function
* ae46c98 wificontrol: remove unsused variable need_update
* 601b2b3 wificontrol: fix length of one-char string
* 6179f57 wificontrol: add support for --network to wificontrol --router call
-------------------------------------------------------------------------------
commit 4d3301df43d5bf43762ba880d9bb559fe493cdbd
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 16:37:36 +0200

    wificontrol: fixed incorrect ifdefs

Base directory -> /
 wificontrol.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 30ae2f3313cc44c1c44d660eef76a0658ac5c34b
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 11:41:41 +0200

    mediatek: fixed wl_autochannel function

Base directory -> /
 mediatek.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 5700ea04de13cee55ed4f74b3210995048c97005
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 09:27:18 +0200

    wificontrol: Disable and enable apclii0 interface if repeater doesn't
    connect in 2 min

Base directory -> /
 wificontrol.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
-------------------------------------------------------------------------------
commit 959f1dc7a2cbc37ae9fa2205d34b8146c62faf1e
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 08:57:04 +0200

    wificontrol: do not allow clients to connect to repeater without uplink

    to avoid loops between repeaters

Base directory -> /
 wificontrol.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 44f4efecf72dda0026f813cca90ae355aa45e506
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-16 11:16:16 +0200

    wificontrol: break very long strings into multiple lines

Base directory -> /
 wificontrol.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit ba24ba425c1e36ea01c3ca827efe9352ec5464f5
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-05-16 15:06:30 +0200

    add wl_disassociate function

Base directory -> /
 broadcom.c | 7 +++++++
 mediatek.c | 8 ++++++++
 2 files changed, 15 insertions(+)
-------------------------------------------------------------------------------
commit ae46c985f3ae2b78072ba492a85bb908f07018fe
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-05-16 12:41:42 +0200

    wificontrol: remove unsused variable need_update

Base directory -> /
 wificontrol.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 601b2b3a0c828990236a6d4809e1beaa574f8159
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-05-16 12:38:52 +0200

    wificontrol: fix length of one-char string

Base directory -> /
 wificontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 6179f571aa1e974a87e0d38037cb52c56878feed
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-16 11:05:03 +0200

    wificontrol: add support for --network to wificontrol --router call

Base directory -> /
 wificontrol.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-05-17 16:38:11 +02:00
Reidar Cederqvist
3d148c515c Update feed [ feed_inteno_packages ] package [ questd ]
-------------------------------------------------------------------------------
* 30ae2f3 mediatek: fixed wl_autochannel function
* 5700ea0 wificontrol: Disable and enable apclii0 interface if repeater doesn't connect in 2 min
* 959f1dc wificontrol: do not allow clients to connect to repeater without uplink
* 44f4efe wificontrol: break very long strings into multiple lines
* ba24ba4 add wl_disassociate function
* ae46c98 wificontrol: remove unsused variable need_update
* 601b2b3 wificontrol: fix length of one-char string
* 6179f57 wificontrol: add support for --network to wificontrol --router call
-------------------------------------------------------------------------------
commit 30ae2f3313cc44c1c44d660eef76a0658ac5c34b
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 11:41:41 +0200

    mediatek: fixed wl_autochannel function

Base directory -> /
 mediatek.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 5700ea04de13cee55ed4f74b3210995048c97005
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 09:27:18 +0200

    wificontrol: Disable and enable apclii0 interface if repeater doesn't
    connect in 2 min

Base directory -> /
 wificontrol.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
-------------------------------------------------------------------------------
commit 959f1dc7a2cbc37ae9fa2205d34b8146c62faf1e
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-17 08:57:04 +0200

    wificontrol: do not allow clients to connect to repeater without uplink

    to avoid loops between repeaters

Base directory -> /
 wificontrol.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 44f4efecf72dda0026f813cca90ae355aa45e506
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-16 11:16:16 +0200

    wificontrol: break very long strings into multiple lines

Base directory -> /
 wificontrol.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit ba24ba425c1e36ea01c3ca827efe9352ec5464f5
Author: Sukru Senli <sukru.senli@inteno.se>
Date: 2017-05-16 15:06:30 +0200

    add wl_disassociate function

Base directory -> /
 broadcom.c | 7 +++++++
 mediatek.c | 8 ++++++++
 2 files changed, 15 insertions(+)
-------------------------------------------------------------------------------
commit ae46c985f3ae2b78072ba492a85bb908f07018fe
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-05-16 12:41:42 +0200

    wificontrol: remove unsused variable need_update

Base directory -> /
 wificontrol.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 601b2b3a0c828990236a6d4809e1beaa574f8159
Author: Alex Oprea <alex.oprea@inteno.se>
Date: 2017-05-16 12:38:52 +0200

    wificontrol: fix length of one-char string

Base directory -> /
 wificontrol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 6179f571aa1e974a87e0d38037cb52c56878feed
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2017-05-16 11:05:03 +0200

    wificontrol: add support for --network to wificontrol --router call

Base directory -> /
 wificontrol.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2017-05-17 11:54:28 +02:00
Reidar Cederqvist
1193886cef changed the default value for enable in catv from 'no' to '0' both the new and old value work with the current inti.d script 2016-08-31 14:20:38 +02:00
Reidar Cederqvist
cebc3f53e5 updated the init.d script for catv so it gets a bool for enable from config and sends "on/off" to ubus call catv set-enable 2016-08-31 14:16:36 +02:00
77 changed files with 2013 additions and 440 deletions

47
brcmslic/Makefile Normal file
View File

@@ -0,0 +1,47 @@
#
# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_RELEASE:=1
PKG_VERSION:=0.1
PKG_SOURCE_URL:=git@private.inteno.se:brcmslic
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=837ec19e37650e424e77c921672a0806e198ba7b
PKG_NAME:=brcmslic
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/brcmslic
CATEGORY:=Utilities
TITLE:=Brcmslic
URL:=
DEPENDS:=
endef
define Package/brcmslic/description
Brcmslic
endef
define Package/brcmslic/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/brcmslic $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/endpt $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,brcmslic))

View File

@@ -0,0 +1,4 @@
config dect 'dect'
option radio 'auto'

View File

@@ -1,4 +1,4 @@
config service 'catv'
option enable 'no'
option enable '0'
option filter '3'

54
fping/Makefile Normal file
View File

@@ -0,0 +1,54 @@
#
# Copyright (C) 2016 Nikil Mehta <nikil.mehta@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=fping
PKG_VERSION:=4.0
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://fping.org/dist/
PKG_HASH:=67eb4152b98ad34f99d2eec4e1098a0bb52caf13c0c89cd147349d08190fe8ce
PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
PKG_LICENSE:=BSD-4-Clause
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/fping
SECTION:=net
CATEGORY:=Network
TITLE:=sends ICMP ECHO_REQUEST packets to network hosts
URL:=http://fping.org/
endef
define Package/fping/description
fping is a ping like program which uses the Internet Control Message Protocol
(ICMP) echo request to determine if a target host is responding. fping
differs from ping in that you can specify any number of targets on the command
line, or specify a file containing the lists of targets to ping. Instead of
sending to one target until it times out or replies, fping will send out a
ping packet and move on to the next target in a round-robin fashion.
endef
CONFIGURE_ARGS+= \
--enable-ipv4 \
--enable-ipv6
TARGET_CFLAGS += -std=gnu99
define Package/fping/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fping $(1)/usr/bin/
endef
$(eval $(call BuildPackage,fping))

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:=4.4.0
PKG_RELEASE:=RC4
BASE_PKG_VERSION:=5.0.1
PKG_RELEASE:=RC1
PKG_VERSION:=$(BASE_PKG_VERSION)-$(PKG_RELEASE)_$(DATE)_$(LOGIN)
export PKG_VERSION
###########################--RELEASE--################################
PKG_SOURCE_VERSION:=e855fdb65ec312e9ec044ce9319d6ac17fde57cd
PKG_SOURCE_VERSION:=a2635dd11c477d70728ab6cbe5c2dee3965dbe14
ifeq ($(CONFIG_ICE_OPEN),y)
TARGET_PROFILE=$(shell echo $(CONFIG_TARGET_BOARD) | sed s/\"//g)
PKG_SOURCE_URL:=http://iopsys.inteno.se/iopsys/consumer/
@@ -154,6 +154,7 @@ define Package/ice-client/install
$(CP) $(PKG_BUILD_DIR)/scripts/etc/config/ice $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/iopsys
$(CP) $(PKG_BUILD_DIR)/scripts/server.ini $(1)/etc/iopsys
$(CP) $(PKG_BUILD_DIR)/scripts/defaults.ini $(1)/etc/iopsys
$(CP) $(PKG_BUILD_DIR)/scripts/modify.ini $(1)/etc/iopsys
$(INSTALL_DIR) $(1)/etc/iopsys/certificates
$(CP) $(PKG_BUILD_DIR)/scripts/cert_server_ca.pem $(1)/etc/iopsys/certificates

View File

@@ -1,13 +1,15 @@
#!/bin/sh
grep -rq "^ice:" /etc/passwd || {
local password="$(db get hw.board.wpaKey)"
if [ -n "$password" ]; then
adduser -D -H -s /bin/false ice
(echo $password; sleep 1; echo $password) | passwd ice >/dev/null 2>&1
fi
adduser -D -H -s /bin/false ice
}
uci -q delete passwords.ice
uci -q set passwords.ice=usertype
uci -q set passwords.ice.password="\$WPAKEY"
uci -q add_list passwords.ice._access_r=root
uci -q commit passwords
uci show rpcd | grep username=.*ice.* >/dev/null || {
cat >> /etc/config/rpcd << EOF
@@ -47,6 +49,7 @@ config login
list write 'juci-network-netifd'
list write 'juci-owsd'
list write 'juci-printer'
list write 'juci-realtime-graphs'
list write 'juci-samba'
list write 'juci-sfp'
list write 'juci-snmpd'
@@ -56,6 +59,7 @@ config login
list write 'juci-usb'
list write 'core'
list write 'unauthenticated'
EOF
}

View File

@@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=icwmp
PKG_VERSION:=3.0-2017-05-01
PKG_VERSION:=3.0-2017-11-24
PKG_FIXUP:=autoreconf
PKG_SOURCE_URL:=http://public.inteno.se:/icwmp.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=5a1b5c439524c56dca7a1921d4cf2fcd2d4c1ff0
PKG_SOURCE_VERSION:=d74b88913f676ebf9a210c4674555d080e57ff52
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
@@ -66,6 +66,10 @@ define Build/Prepare
endef
endif
ifeq ($(CONFIG_TARGET_IBOARDID),"EX400")
TARGET_CFLAGS += -DEX400
endif
TARGET_CFLAGS += \
-D_GNU_SOURCE -D_AADJ
@@ -129,9 +133,11 @@ define Package/icwmp-$(BUILD_VARIANT)/install
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp $(1)/etc/config
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/firewall.cwmp $(1)/etc/firewall.cwmp
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) $(PKG_BUILD_DIR)/init/icwmpd.init $(1)/etc/init.d/icwmpd
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uci-defaults/90-cwmpfirewall $(1)/etc/uci-defaults/90-cwmpfirewall
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(CP) ./files/icwmp.hotplug $(1)/etc/hotplug.d/iface/90-icwmp
ifeq ($(CONFIG_CWMP_SCRIPTS_FULL),y)
$(INSTALL_DIR) $(1)/usr/share/icwmp
$(CP) $(PKG_BUILD_DIR)/scripts/defaults $(1)/usr/share/icwmp

44
icwmp/files/icwmp.hotplug Normal file
View File

@@ -0,0 +1,44 @@
#!/bin/sh
grep -q "Designated" /etc/banner || exit 0
. /lib/functions/network.sh
[ "$ACTION" == "ifup" ] || exit 0
local islan="$(uci -q get network.$INTERFACE.is_lan)"
[ "$islan" == "1" ] && exit 0
local proto="$(uci -q get network.$INTERFACE.proto)"
[ "$proto" == "none" ] && exit 0
local ifname="$(uci -q get network.$INTERFACE.ifname)"
[ "${ifname:0:1}" == "@" ] && exit 0
mkdir -p /tmp/ipv4
local previpaddr=""
local curipaddr=""
local ipaddrfile=/tmp/ipv4/$INTERFACE-ipaddr
previpaddr=$(cat $ipaddrfile 2>/dev/null)
network_get_ipaddr curipaddr $INTERFACE
[ -n "$curipaddr" ] && echo $curipaddr > $ipaddrfile || rm -f $ipaddrfile
local prevgateway=""
local curgateway=""
local gatewayfile=/tmp/ipv4/$INTERFACE-gateway
prevgateway=$(cat $gatewayfile 2>/dev/null)
network_get_gateway curgateway $INTERFACE
[ -n "$curgateway" ] && echo $curgateway > $gatewayfile || rm -f $gatewayfile
local prevsubnets=""
local cursubnets=""
local subnetsfile=/tmp/ipv4/$INTERFACE-subnets
prevsubnets=$(cat $subnetsfile 2>/dev/null)
network_get_subnets cursubnets $INTERFACE
[ -n "$cursubnets" ] && echo $cursubnets > $subnetsfile || rm -f $subnetsfile
[ "$previpaddr" = "$curipaddr" -a "$prevgateway" = "$curgateway" -a "$prevsubnets" = "$cursubnets" ] && exit 0
[ -f /etc/config/cwmp ] && /etc/init.d/icwmpd reload &

36
ifbt/Makefile Normal file
View File

@@ -0,0 +1,36 @@
#
# Copyright (C) 2013 Inteno
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=ifbt
PKG_VERSION:=0.1
PKG_SOURCE_VERSION:=da97d6668d3c0e3f2be226c66b406e90179ada81
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git@private.inteno.se:ifbt.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/ifbt
CATEGORY:=Utilities
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c
TITLE:=Fast BSS Transition
endef
define Package/ifbt/description
ifbt is Iopsys application for fast BSS transition
endef
define Package/ifbt/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ifbt $(1)/sbin/
endef
$(eval $(call BuildPackage,ifbt))

View File

@@ -12,7 +12,7 @@ PKG_NAME:=inbd
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_SOURCE_VERSION:=2d474e9ff37b9cfcffd4b9ac8eba8db03eb38a21
PKG_SOURCE_VERSION:=92f918d26c0ffc22d1704f5ea6cbb0bd7fdbdab9
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=http://public.inteno.se/inbd

View File

@@ -12,6 +12,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/inteno-netmodes
CATEGORY:=Base system
DEPENDS:=+fping
TITLE:=Predefined Network Modes
endef

View File

@@ -1,53 +0,0 @@
#!/bin/sh
[ "$INTERFACE" != "wan" ] && exit
. /lib/functions/network.sh
network_get_ipaddr ip $INTERFACE
[ -z "$ip" ] && exit
toggle_firewall() {
local section=$1
local disable=$2
config_get name "$1" name
if [ "$name" == "wan" ]; then
uci -q set firewall.settings.disabled=$disable
if [ "$disable" == "1" ]; then
uci -q set firewall.$section.input="ACCEPT"
else
uci -q set firewall.$section.input="REJECT"
fi
uci -q commit firewall
fi
}
set_disabled() {
config_load firewall
config_foreach toggle_firewall zone $1
}
test_ip() {
if [ -n "$(echo $ip | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)')" ]; then
# private IP
set_disabled 1
else
# public IP
set_disabled 0
[ "$1" -eq "1" ] && {
uci set netmode.setup.repeaterready=0
uci commit netmode
local pid="$(ps | grep wificontro[l] | awk '/repeater/ {print $1}')"
[ "$pid" != "" ] && kill $pid
pid="$(pidof netmode-client-detect)"
[ "$pid" == "" ] && /sbin/netmode-client-detect &
}
fi
}
case "$(uci -q get netmode.setup.curmode)" in
repeater*) test_ip ;;
*) [ "$(uci -q get netmode.setup.repeaterready)" == "1" ] && test_ip 1;;
esac

View File

@@ -0,0 +1,119 @@
#!/bin/sh
[ "$INTERFACE" != "wan" ] && exit
. /lib/functions/network.sh
network_get_ipaddr ip $INTERFACE
repeaterready="$(uci -q get netmode.setup.repeaterready)"
[ -z "$ip" ] && exit
toggle_firewall() {
local section=$1
local disable=$2
config_get name "$1" name
if [ "$name" == "wan" ]; then
uci -q set firewall.settings.disabled=$disable
if [ "$disable" == "1" ]; then
uci -q set firewall.$section.input="ACCEPT"
else
uci -q set firewall.$section.input="REJECT"
fi
uci -q commit firewall
fi
}
set_disabled() {
config_load firewall
config_foreach toggle_firewall zone $1
/etc/init.d/firewall reload
}
is_inteno_macaddr()
{
macaddr=$1
echo $macaddr | grep -i -e "^00:22:07" \
-e "^02:22:07" \
-e "^44:D4:37" \
-e "^00:0C:07" \
-e "^02:0C:07" \
-e "^06:0C:07" \
-e "^00:0C:43" \
-e "^02:0C:43" \
-e "^06:0C:43" \
&& return
false
}
switch_mode() {
[ "$repeaterready" == "1" ] || return
# 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
ip addr flush dev br-lan
# flush iptables in case the MASTER
# tries to configure us before
# firewall is disabled the proper way
iptables -F
ubus call leds set '{"state" : "allflash"}'
local ret=0
# let netmode-conf up to 20 seconds before switching mode
for tm in 2 4 6 8; do
if [ -f /tmp/wificontrol.txt ]; then
ret=1
break
fi
sleep $tm
done
# let netmode-conf take over
[ $ret -eq 1 ] && return
# go head with switching mode
touch -f /tmp/switching_mode
echo "Switching to 'extender' mode" > /dev/console
uci -q set netmode.setup.curmode='repeater'
uci set netmode.setup.repeaterready=0
uci commit netmode
/etc/init.d/netmode reload
echo "Restarting network services" > /dev/console
ubus call network reload
wifi reload nodat
ubus call router.network reload
ubus call leds set '{"state" : "normal"}'
rm -f /tmp/switching_mode
}
test_ip() {
if [ -n "$(echo $ip | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)')" ]; then
# private IP
switch_mode
set_disabled 1
else
# public IP
set_disabled 0
[ "$1" -eq "1" ] && {
uci set netmode.setup.repeaterready=0
uci commit netmode
local pid="$(ps | grep wificontro[l] | awk '/repeater/ {print $1}')"
[ "$pid" != "" ] && kill -9 $pid
pid="$(pidof netmode-client-detect)"
[ "$pid" == "" ] && /sbin/netmode-client-detect &
# set default JUCI page to overview
uci -q set juci.juci.homepage="overview"
uci commit juci
}
fi
}
case "$(uci -q get netmode.setup.curmode)" in
repeater*) test_ip ;;
*) [ "$repeaterready" == "1" ] && test_ip 1;;
esac

View File

@@ -0,0 +1,251 @@
#!/bin/sh
# this scripts shifts the lan network prefixes
# if a wan interface has the same network prefix.
. /lib/functions.sh
. /lib/functions/network.sh
local lockfile="/tmp/70-shiftrange.lock"
local restricted_nets=""
local all_nets=""
#####
##### initial functions
#####
initial_check()
{
# run only on ifup
[ "$ACTION" == "ifup" ] || exit 0
# run only for uplink (not is_lan) interfaces
local islan="$(uci -q get network.$INTERFACE.is_lan)"
[ "$islan" != "1" ] || exit 0
# run only if the uplink interface has a configured protocol
local proto="$(uci -q get network.$INTERFACE.proto)"
[ "$proto" != "none" ] || exit 0
}
finish()
{
lock -u $lockfile
rm -f $lockfile
}
# just one instance of this script at a time
just_one_instance()
{
local counter=0
local limit=10
#wait for the lock to become free
while [ -e $lockfile ] ; do
sleep 1
counter=$((counter + 1))
[ "$counter" -gt "$limit" ] && exit 1
done
lock $lockfile
trap finish EXIT INT TERM
}
#####
##### helper functions
#####
#given a an ip and a mask in the form of "192.168.1.1/24"
#return the network address like "192.168.1.0/24"
get_network_address()
{
local ip="$1"
[ -z "$ip" ] && return
local prefix=${ip##*/}
local ip1=${ip%%.*} ; ip=${ip#*.*}
local ip2=${ip%%.*} ; ip=${ip#*.*}
local ip3=${ip%%.*} ; ip=${ip#*.*}
local ip4=${ip%%/*}
local ip=$((($ip1 << 24) + ($ip2 << 16) + ($ip3 << 8) + $ip4))
local mask=$((0xFFFFFFFF >> (32 - $prefix) << (32 - $prefix)))
local network=$(($ip & $mask))
local n1=$((($network & 0xFF000000) >> 24))
local n2=$((($network & 0x00FF0000) >> 16))
local n3=$((($network & 0x0000FF00) >> 8))
local n4=$(( $network & 0x000000FF))
echo "$n1.$n2.$n3.$n4/$prefix"
}
#given a network address (192.168.1.0/24)
#find the next network address (192.168.2.0/24)
next_network_address()
{
local ip=$1
local prefix=${ip##*/}
local ip1=${ip%%.*} ; ip=${ip#*.*}
local ip2=${ip%%.*} ; ip=${ip#*.*}
local ip3=${ip%%.*} ; ip=${ip#*.*}
local ip4=${ip%%/*}
local ip=$((($ip1 << 24) + ($ip2 << 16) + ($ip3 << 8) + $ip4))
local one=$((1 << (32-$prefix)))
local new=$(($ip + $one))
local n1=$((($new & 0xFF000000) >> 24))
local n2=$((($new & 0x00FF0000) >> 16))
local n3=$((($new & 0x0000FF00) >> 8))
local n4=$(( $new & 0x000000FF))
echo "$n1.$n2.$n3.$n4/$prefix"
}
# given a network address and a prefix (192.168.2.0/24)
# return the first host ip available (192.168.2.1)
first_host_in_network ()
{
local ip=$1
local prefix=${ip##*/}
local ip1=${ip%%.*} ; ip=${ip#*.*}
local ip2=${ip%%.*} ; ip=${ip#*.*}
local ip3=${ip%%.*} ; ip=${ip#*.*}
local ip4=${ip%%/*}
local ip=$((($ip1 << 24) + ($ip2 << 16) + ($ip3 << 8) + $ip4))
local new=$(($ip + 1))
local n1=$((($new & 0xFF000000) >> 24))
local n2=$((($new & 0x00FF0000) >> 16))
local n3=$((($new & 0x0000FF00) >> 8))
local n4=$(( $new & 0x000000FF))
echo "$n1.$n2.$n3.$n4"
}
# given a network address,
# find the next available network address.
shift_range()
{
local net="$1"
while true ; do
if [ "$restricted_nets" == "${restricted_nets//$net/}" ] && [ "$all_nets" == "${all_nets//$net/}" ]; then
# found a net that is not in restricted nets nor in all nets
break
fi
net=$(next_network_address $net)
done
echo "$net"
}
#####
##### parse all interfaces section
#####
# restricted_nets = all the IPs on wan interfaces
# all_nets = all the IPs on any interface
parse_interface()
{
local interface=$1
local nets="" # "192.168.1.1/24"
local networks="" # "192.168.1.0/24"
config_get is_lan $interface is_lan
network_get_subnets nets $interface
for n in $nets ; do
networks="$networks $(get_network_address $n)"
done
[ "$is_lan" != "1" ] && restricted_nets="$restricted_nets $networks"
all_nets="$all_nets $networks"
}
# parse all the interfaces
# get all the IPs on wan interfaces and store them in restrict_nets
# get all the IPs on all interfaces and store them in all_nets
parse_interfaces()
{
config_foreach parse_interface "interface"
}
#####
##### parse all lan interfaces section
#####
parse_lan()
{
local interface=$1
local nets=""
local ips=""
local newips=""
local ips_changed=0
[ "$interface" == "loopback" ] && return
config_get is_lan $interface is_lan
[ "$is_lan" == "1" ] || return
network_get_subnets ips $interface
for ip in $ips ; do
net="$(get_network_address $ip)"
if [ "$restricted_nets" == "${restricted_nets//$net/}" ] ; then
# net is not in restricted nets
# append ip to newips
[ -z "$newips" ] && newips="${ip%/*}" || newips="$newips ${ip%/*}"
continue
fi
#net is in restricted_nets
local newnet=$(shift_range $net)
local newip="$(first_host_in_network $newnet)"
# append newip to newips
[ -z "$newips" ] && newips="$newip" || newips="$newips $newip"
ips_changed=1
logger "$0: Changing the ip on interface $interface from $ip to $newip/${newnet##*/}"
echo "$0: Changing the ip on interface $interface from $ip to $newip/${newnet##*/}" >/dev/console
done
#assign the new ips
if [ "$ips_changed" == "1" ] ; then
uci -q set network.$interface.ipaddr="$newips"
fi
}
# parse all the interface with is_lan=1
parse_lans()
{
config_foreach parse_lan "interface"
}
#####
##### main
#####
main()
{
initial_check
just_one_instance
config_load network
parse_interfaces
parse_lans
if [ -n "$(uci changes network)" ] ; then
ubus call uci commit '{"config":"network"}'
fi
}
main $@

View File

@@ -52,6 +52,7 @@ link=$(cat /sys/class/net/${WANDEV:0:4}/operstate)
case "$ACTION" in
add|register)
[ "$link" == "down" ] && return
ubus call leds set '{"state" : "allflash"}'
echo "Autoswitch to Extender mode" > /dev/console
sleep 2
wetif="$(get_wifi_wet_interface)"
@@ -66,10 +67,14 @@ case "$ACTION" in
uci set network.wan.ifname="$(echo $WANDEV $(uci get network.wan.ifname) | sed 's/$/ /' | sed -r "s/$wetif //g" | tr ' ' '\n' | sort -u | tr '\n' ' ')"
uci commit network
ubus call network reload
[ -f /usr/sbin/wlctl ] && wlctl -i $wetif bss down 2>/dev/null
ping -c 1 -w 10 $defroute >/dev/null 2>&1 || killall -USR1 udhcpc
ubus call router.network reload
ubus call leds set '{"state" : "normal"}'
;;
remove|unregister)
[ "$link" == "up" ] && return
ubus call leds set '{"state" : "allflash"}'
echo "Autoswitch to Repeater mode" > /dev/console
sleep 2
wetif="$(get_wifi_wet_interface)"
@@ -84,9 +89,14 @@ case "$ACTION" in
uci set network.wan.ifname="$(echo $wetif $(uci get network.wan.ifname) | sed 's/$/ /' | sed -r "s/$WANDEV //g" | tr ' ' '\n' | sort -u | tr '\n' ' ')"
uci commit network
ubus call network reload
[ -f /usr/sbin/wlctl ] && wlctl -i $wetif bss up 2>/dev/null
ping -c 1 -w 10 $defroute >/dev/null 2>&1 || {
killall -9 wifi
wifi reload nodat
killall -USR1 udhcpc
}
ubus call router.network reload
ubus call leds set '{"state" : "normal"}'
;;
esac

View File

@@ -3,6 +3,9 @@
START=10
USE_PROCD=1
TMPDIR=/var/netmodes
OLD_MODE_FILE=/var/netmodes/old_mode
. /usr/share/libubox/jshn.sh
. /lib/network/config.sh
@@ -41,13 +44,29 @@ get_device() {
populate_netmodes() {
[ -f /etc/config/netmode -a -d $modedir ] || return
local curmode
config_load netmode
config_get curmode setup curmode
mkdir -p $TMPDIR
if [ "$curmode" == "routed" ]; then
local hw="$(db -q get hw.board.hardware)"
if [ "$hw" == "EX400" ]; then
curmode="routed_mtk"
else
curmode="routed_brcm"
fi
fi
echo $curmode > $OLD_MODE_FILE
delete_netmode() {
uci delete netmode.$1
}
config_load netmode
config_foreach delete_netmode netmode
uci commit netmode
@@ -162,17 +181,20 @@ populate_netmodes() {
switch_netmode() {
[ -f /etc/config/netmode -a -d $modedir ] || return
local curmode conf repeaterready
local netreload="$1"
local curmode conf repeaterready old_mode
config_load netmode
config_get curmode setup curmode
config_get repeaterready setup repeaterready "0"
if [ "$repeaterready" == "1" ] ; then
uci -q set netmode.setup.repeaterready="0"
uci commit netmode
fi
config_get curmode setup curmode
if [ "$curmode" == "repeater" ]; then
local hw="$(db -q get hw.board.hardware)"
if [ "$hw" == "EX400" ]; then
@@ -193,6 +215,17 @@ switch_netmode() {
uci set netmode.setup.curmode="$curmode"
uci commit netmode
fi
old_mode=`cat $OLD_MODE_FILE 2>/dev/null`
# if curmode has not changed do not copy configs
if [ "$curmode" == "$old_mode" ]; then
/etc/init.d/enviroment reload
return
fi
echo $curmode >$OLD_MODE_FILE
[ -d "/etc/netmodes/$curmode" ] || return
cp /etc/netmodes/$curmode/* /etc/config/
rm -f /etc/config/DETAILS
@@ -201,19 +234,35 @@ switch_netmode() {
local askcred=$(uci -q get netmode.$curmode.askcred)
if [ "$reboot" == "0" ]; then
/etc/init.d/enviroment reload
case "$curmode" in
routed*)
ubus call uci commit '{"config":"network"}'
;;
repeater*)
if [ -f /etc/init.d/omcproxy ]; then
/etc/init.d/omcproxy stop
fi
if [ "$netreload" != "0" ]; then
ubus call uci commit '{"config":"network"}'
fi
;;
esac
else
reboot &
fi
}
start_client_listener() {
local curmode repeaterready
config_load netmode
local curmode repeaterready ulcpid
config_load netmode
config_get repeaterready setup repeaterready 0
ulcpid=$(ps | grep "ubus listen client" | grep -v grep | awk '{print$1}')
[ $repeaterready -eq 1 ] && {
killall -SIGKILL netmode-client-detect >/dev/null 2>&1
kill -9 $ulcpid >/dev/null 2>&1
return
}
@@ -222,6 +271,7 @@ start_client_listener() {
case "$curmode" in
repeater*)
killall -SIGKILL netmode-client-detect >/dev/null 2>&1
kill -9 $ulcpid >/dev/null 2>&1
;;
*)
pidof netmode-client-detect || /sbin/netmode-client-detect &
@@ -229,23 +279,45 @@ start_client_listener() {
esac
}
start_netmode_discover() {
local curmode repeaterready
killall -9 netmode-discover >/dev/null 2>&1
config_load netmode
config_get repeaterready setup repeaterready 0
[ $repeaterready -eq 1 ] && return
config_get curmode setup curmode
case "$curmode" in
repeater*)
/sbin/netmode-discover &
;;
esac
}
start_service() {
populate_netmodes
start_client_listener
start_netmode_discover
}
reload_service() {
switch_netmode
switch_netmode "$1"
# set default JUCI page to overview
uci -q set juci.juci.homepage="overview"
uci commit juci
start_client_listener
start_netmode_discover
}
stop_service() {
killall -SIGKILL netmode-client-detect >/dev/null 2>&1
killall -9 netmode-discover >/dev/null 2>&1
}
service_triggers()

View File

@@ -4,6 +4,13 @@ config wifi-status 'status'
option sched_status '0'
option schedule '0'
config bandsteering 'bandsteering'
option enabled '0'
option policy '0'
config apsteering 'apsteering'
option enabled '0'
config wifi-device 'wl0'
option type 'broadcom'
option country 'EU/13'

View File

@@ -11,7 +11,8 @@
"excluded_boards" : [
"CG300",
"CG301",
"EX400"
"EX400",
"F*"
],
"acl" : [
"admin",

View File

@@ -4,6 +4,13 @@ config wifi-status 'status'
option sched_status '0'
option schedule '0'
config bandsteering 'bandsteering'
option enabled '0'
option policy '0'
config apsteering 'apsteering'
option enabled '0'
config wifi-device 'wl0'
option type 'broadcom'
option country 'EU/13'

View File

@@ -11,10 +11,8 @@
"DG15*",
"DG40*",
"EG40*",
"EX40*"
],
"acl" : [
"admin"
"EX40*",
"F*"
],
"uplink_band" : "b",
"credentials" : 1,

View File

@@ -4,6 +4,13 @@ config wifi-status 'status'
option sched_status '0'
option schedule '0'
config bandsteering 'bandsteering'
option enabled '0'
option policy '0'
config apsteering 'apsteering'
option enabled '0'
config wifi-device 'wl0'
option type 'broadcom'
option country 'EU/13'
@@ -27,7 +34,7 @@ config wifi-device 'wl0'
option rifs '0'
option rifs_advert '0'
option maxassoc '32'
option beamforming '0'
option beamforming '1'
option doth '1'
option dfsc '1'

View File

@@ -11,10 +11,8 @@
"DG15*",
"DG40*",
"EG40*",
"EX40*"
],
"acl" : [
"admin"
"EX40*",
"F*"
],
"uplink_band" : "b",
"credentials" : 1,

View File

@@ -4,6 +4,13 @@ config wifi-status 'status'
option sched_status '0'
option schedule '0'
config bandsteering 'bandsteering'
option enabled '0'
option policy '0'
config apsteering 'apsteering'
option enabled '0'
config wifi-device 'wl0'
option type 'broadcom'
option country 'EU/13'
@@ -27,7 +34,7 @@ config wifi-device 'wl0'
option rifs '0'
option rifs_advert '0'
option maxassoc '32'
option beamforming '0'
option beamforming '1'
option doth '1'
option dfsc '1'

View File

@@ -8,7 +8,8 @@
{ "sv" : "Routern kommer att fungera som en trådbunden extender eller trådlös repeater till den valda trådlösa åtkomstpunkten. Uplink 2.4G & Downlink 2.4G + 5G" }
],
"excluded_boards" : [
"*G*"
"*G*",
"F*"
],
"uplink_band" : 'b',
"credentials" : 1,

View File

@@ -4,14 +4,20 @@ config wifi-status 'status'
option sched_status '0'
option schedule '0'
config bandsteering 'bandsteering'
option enabled '0'
option policy '0'
config apsteering 'apsteering'
option enabled '0'
config wifi-device ra0
option band b
option channel 1
option channel auto
option bandwidth '20'
option hwmode 11n
option hwmode auto
option htmode HT20
option country 'DE'
option beamforming 0
config wifi-iface
option device ra0
@@ -21,15 +27,16 @@ config wifi-iface
option encryption psk2
option key $WPAKEY
option ifname ra0
option wps_pbc 1
config wifi-device rai0
option band a
option channel 36
option channel auto
option bandwidth '80'
option hwmode 11ac
option htmode VHT80
option country 'DE'
option beamforming 0
option beamforming 1
config wifi-iface
option device rai0
@@ -39,6 +46,7 @@ config wifi-iface
option encryption psk2
option key $WPAKEY
option ifname rai0
option wps_pbc 1
config wifi-iface
option device ra0

View File

@@ -8,7 +8,8 @@
{ "sv" : "Routern kommer att fungera som en trådbunden extender eller trådlös repeater till den valda trådlösa åtkomstpunkten. Uplink 5G & Downlink 2.4G + 5G" }
],
"excluded_boards" : [
"*G*"
"*G*",
"F*"
],
"uplink_band" : 'a',
"credentials" : 1,

View File

@@ -4,14 +4,20 @@ config wifi-status 'status'
option sched_status '0'
option schedule '0'
config bandsteering 'bandsteering'
option enabled '0'
option policy '0'
config apsteering 'apsteering'
option enabled '0'
config wifi-device ra0
option band b
option channel 1
option channel auto
option bandwidth '20'
option hwmode 11n
option hwmode auto
option htmode HT20
option country 'DE'
option beamforming 0
config wifi-iface
option device ra0
@@ -21,15 +27,16 @@ config wifi-iface
option encryption psk2
option key $WPAKEY
option ifname ra0
option wps_pbc 1
config wifi-device rai0
option band a
option channel 36
option channel auto
option bandwidth '80'
option hwmode 11ac
option htmode VHT80
option country 'DE'
option beamforming 0
option beamforming 1
config wifi-iface
option device rai0
@@ -39,6 +46,7 @@ config wifi-iface
option encryption psk2
option key $WPAKEY
option ifname rai0
option wps_pbc 1
config wifi-iface
option device rai0

View File

@@ -4,6 +4,13 @@ config wifi-status 'status'
option sched_status '0'
option schedule '0'
config bandsteering 'bandsteering'
option enabled '0'
option policy '0'
config apsteering 'apsteering'
option enabled '0'
config wifi-device 'wl0'
option type 'broadcom'
option country 'EU/13'

View File

@@ -8,8 +8,10 @@
{ "sv" : "" }
],
"excluded_boards" : [
"*G*"
"*G*",
"F*"
],
"reboot" : 0,
"credentials" : 0
}

View File

@@ -0,0 +1,10 @@
config proxy
option scope global
option uplink wan
list downlink lan
config proxy
option scope global
option uplink wan6
list downlink lan

View File

@@ -4,14 +4,20 @@ config wifi-status 'status'
option sched_status '0'
option schedule '0'
config bandsteering 'bandsteering'
option enabled '0'
option policy '0'
config apsteering 'apsteering'
option enabled '0'
config wifi-device ra0
option band b
option channel 1
option channel auto
option bandwidth '20'
option hwmode 11n
option hwmode auto
option htmode HT20
option country 'DE'
option beamforming 0
config wifi-iface
option device ra0
@@ -20,15 +26,16 @@ config wifi-iface
option ssid Inteno-$BSSID4
option encryption psk2
option key $WPAKEY
option wps_pbc 1
config wifi-device rai0
option band a
option channel 36
option channel auto
option bandwidth '80'
option hwmode 11ac
option htmode VHT80
option country 'DE'
option beamforming 0
option beamforming 1
config wifi-iface
option device rai0
@@ -37,4 +44,5 @@ config wifi-iface
option ssid Inteno-$BSSID4
option encryption psk2
option key $WPAKEY
option wps_pbc 1

View File

@@ -9,28 +9,48 @@ local action ipaddr macaddr network
timed_check() {
while true; do
network=${network:-lan}
ubus call repeater get_creds '{"network":"'$network'","file":"/tmp/wificontrol.txt"}'
wificontrol --router
sleep $1
done
}
is_inteno_macaddr()
{
macaddr=$1
echo $macaddr | grep -i -e "^00:22:07" \
-e "^02:22:07" \
-e "^44:D4:37" \
-e "^00:0C:07" \
-e "^02:0C:07" \
-e "^06:0C:07" \
-e "^00:0C:43" \
-e "^02:0C:43" \
-e "^06:0C:43" \
&& return
false
}
timed_check 60 &
ubus listen client | \
while read event ; do
#echo "netmode-client-detect got event: $event" >/dev/console
json_load "$event"
json_select client
json_get_var action action
[ "$action" == "connect" ] || continue
json_get_var macaddr macaddr
json_get_var ipaddr ipaddr
json_get_var network netwrork "lan"
while true ; do
ubus listen client | \
while read event ; do
#echo "netmode-client-detect got event: $event" >/dev/console
json_load "$event"
json_select client
json_get_var action action
[ "$action" == "connect" ] || continue
json_get_var macaddr macaddr
json_get_var ipaddr ipaddr
json_get_var network network "lan"
if echo $macaddr | grep -i -e "^00:22:07" -e "^44:D4:37" -e "^02:0C:07" -e "^06:0C:07"; then
echo "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
if is_inteno_macaddr $macaddr; then
echo "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
done
done

View File

@@ -3,17 +3,22 @@
. /usr/share/libubox/jshn.sh
. /lib/functions.sh
local state="exit"
state="exit"
TMPPATH="/tmp/netmode_config_backup"
CURMODE=""
SLEEPTIME=300
set_wireless_values() {
local iface_num="$1"
local ssid="$2"
local key="$3"
local encryption="$4"
local device="$5"
local old_ssid old_key old_encryption
if ! uci -q get wireless.@wifi-iface[$iface_num] >/dev/null 2>&1; then
state="reload"
uci add wireless wifi-iface >/dev/null 2>&1
uci set wireless.@wifi-iface[$iface_num].device="$device"
fi
local network="$(uci -q get wireless.@wifi-iface[$iface_num].network)"
old_ssid="$(uci -q get wireless.@wifi-iface[$iface_num].ssid)"
@@ -54,11 +59,14 @@ get_iface_num() {
local dev
while true; do
[ $i -gt 100 ] && break ## just a safty messure
mode="$(uci -q get wireless.@wifi-iface[$i].mode)"
if [ "$mode" != "ap" ]; then
i=$((i+1))
if ! uci -q get wireless.@wifi-iface[$i] >/dev/null; then
break
fi
mode="$(uci -q get wireless.@wifi-iface[$i].mode)"
if [ "$mode" == "wet" -o "$mode" == "sta" ]; then
i=$((i+1))
continue
fi
dev="$(uci -q get wireless.@wifi-iface[$i].device)"
if [ "$dev" != "$device" ]; then
[ -z "$dev" ] && break
@@ -73,11 +81,45 @@ get_iface_num() {
eval "export -- \"$__save=$i\""
}
restore() {
if [ "$1" == "back" ]; then
uci set juci.juci.homepage='netmode-wizard'
uci commit juci
cp $TMPPATH/* /etc/config/
uci set netmode.setup.curmode=$CURMODE
uci commit netmode
ubus call network reload
wifi reload
ubus call router.network reload
fi
rm -r $TMPPATH
ubus call leds set '{"state":"normal"}'
}
backup() {
mkdir -p $TMPPATH
cp /etc/config/* $TMPPATH/
CURMODE="$(uci -q get netmode.setup.curmode)"
ubus call leds set '{"state":"allflash"}'
}
###### START HERE #######
local file="$1"
file="$1"
from_gui="$2"
[ -f "$file" ] || exit
# let netmode-handler up to 20 seconds to finish switching mode
for tm in 2 4 6 8; do
if [ ! -f /tmp/switching_mode ]; then
break
fi
sleep $tm
done
[ "$from_gui" == "true" ] && backup
json_load "`cat $file`"
json_select "wifi_ifaces"
@@ -108,15 +150,23 @@ local dummy band ssid key encryption device iface_num
while json_get_var dummy $i; do
json_select $i
json_get_var band band
[ "$apcliband" == "$band" ] && break
[ "$band" == "" -o "$apcliband" == "$band" ] && break
json_select ..
i=$((i+1))
done
[ "$apcliband" == "$band" ] || exit
[ "$apcliband" == "$band" -o "$band" == "" ] || {
[ "$from_gui" == "true" ] && restore "back"
exit
}
repeater_iface_num=$(uci -q show wireless | grep -e ".mode='wet'" -e ".mode='sta'" | sed 's/.*\[\([0-9]\)\].*/\1/')
[ -z "$repeater_iface_num" ] && exit
[ -z "$repeater_iface_num" ] && {
[ "$from_gui" == "true" ] && restore "back"
exit
}
json_get_var ssid ssid
json_get_var key key
json_get_var encryption encryption
@@ -134,27 +184,57 @@ i=1
while json_get_var dummy $i; do
json_select $i
json_get_var band band
get_device "$band" device
case $band in
a)
get_iface_num "$device" "$a_num" iface_num
a_num=$((a_num+1))
;;
b)
get_iface_num "$device" "$b_num" iface_num
b_num=$((b_num+1))
;;
esac
[ -z $iface_num ] && return
json_get_var ssid ssid
json_get_var encryption encryption
json_get_var key key
set_wireless_values "$iface_num" "$ssid" "$key" "$encryption"
json_select ..
if [ "$band" == "" ]; then
get_device "a" device
get_iface_num "$device" "$a_num" iface_num
a_num=$((a_num+1))
[ -z $iface_num ] && {
[ "$from_gui" == "true" ] && restore "back"
exit
}
set_wireless_values "$iface_num" "$ssid" "$key" "$encryption" "$device"
get_device "b" device
get_iface_num "$device" "$b_num" iface_num
b_num=$((b_num+1))
[ -z $iface_num ] && {
[ "$from_gui" == "true" ] && restore "back"
exit
}
set_wireless_values "$iface_num" "$ssid" "$key" "$encryption" "$device"
else
get_device "$band" device
case $band in
a)
get_iface_num "$device" "$a_num" iface_num
a_num=$((a_num+1))
;;
b)
get_iface_num "$device" "$b_num" iface_num
b_num=$((b_num+1))
;;
esac
[ -z $iface_num ] && {
[ "$from_gui" == "true" ] && restore "back"
exit
}
set_wireless_values "$iface_num" "$ssid" "$key" "$encryption" "$device"
fi
i=$((i+1))
json_select ..
done
i=$((b_num + a_num + 1))
if [ $repeater_iface_num -gt $i ]; then
i=$((i-1))
fi
while uci -q get wireless.@wifi-iface[$i] >/dev/null; do
# if repeater_iface_num is greater than the number of
# configured downlink we need to make sure its not deleted
local mode="$(uci -q get wireless.@wifi-iface[$i].mode)"
if [ "$mode" == "wet" -o "$mode" == "sta" ]; then
i=$((i+1))
@@ -162,19 +242,47 @@ while uci -q get wireless.@wifi-iface[$i] >/dev/null; do
fi
state="reload"
uci -q delete wireless.@wifi-iface[$i] >/dev/null
i=$((i+1))
# do not increment i. The next interface will now
# have the same index as the deleted interface
done
uci commit wireless
if [ "$state" == "exit" ]; then
return
elif [ "$state" == "apply" ]; then
# wifi apply
if [ "$from_gui" == "true" ]; then
# check for connectivity
wifi reload
else
# wifi reload
wifi reload
fi
[ -f /etc/init.d/layer2_interface_ethernet -a -f /etc/config/layer2_interface_ethernet ] && /etc/init.d/layer2_interface_ethernet reload
i=$SLEEPTIME;
[ -f /etc/init.d/layer2_interface_ethernet -a -f /etc/config/layer2_interface_ethernet ] && /etc/init.d/layer2_interface_ethernet reload
while [ $i -gt 0 ]; do
ip=`route -n | awk '/^0.0.0.0/{print $2}'`
if [ "$ip" == "" ]; then
i=$((i-10))
sleep 10
continue
fi
ping -w1 $ip
if [ $? -eq 0 ]; then
restore
exit
else
i=$((i-10))
sleep 9
fi
done
restore "back"
else
if [ "$state" == "exit" ]; then
return
fi
ubus call leds set '{"state":"allflash"}'
if [ "$state" == "apply" ]; then
# wifi apply
wifi reload
else
# wifi reload
wifi reload
fi
[ -f /etc/init.d/layer2_interface_ethernet -a -f /etc/config/layer2_interface_ethernet ] && /etc/init.d/layer2_interface_ethernet reload
ubus call leds set '{"state":"normal"}'
fi

View File

@@ -0,0 +1,44 @@
#!/bin/sh
local unlisted mac ipaddr netmask mask
mask_to_cidr() {
nbits=0
IFS=.
for dec in $1 ; do
case $dec in
255) let nbits+=8;;
254) let nbits+=7;;
252) let nbits+=6;;
248) let nbits+=5;;
240) let nbits+=4;;
224) let nbits+=3;;
192) let nbits+=2;;
128) let nbits+=1;;
0);;
*) echo "Error: $dec is not recognised"; exit 1
esac
done
echo "$nbits"
}
while true; do
unlisted=0
ps | grep -q 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
ipaddr=$(ifconfig br-wan | grep -v inet6 | grep inet | tr ':' ' ' | awk '{print$3}')
netmask=$(ifconfig br-wan | grep -v inet6 | grep inet | tr ':' ' ' | awk '{print$7}')
mask=$(mask_to_cidr $netmask)
}
if [ $unlisted -gt 0 -a -n "$ipaddr" -a -n "$netmask" ]; then
fping -c 1 -t 1000 -g $ipaddr/$mask -q >/dev/null 2>&1
fi
sleep 20
done

View File

@@ -0,0 +1,19 @@
#!/bin/sh
MTK=0
[ "$(db -q get hw.board.hardware)" == "EX400" ] && MTK=1
if [ $MTK -eq 1 ]; then
WANDEV="eth0.2"
link=$(swconfig dev switch0 port 0 get link | awk '{print$2}' | cut -d':' -f2)
else
WANDEV="$(uci get layer2_interface_ethernet.Wan.ifname)"
link=$(cat /sys/class/net/${WANDEV:0:4}/operstate)
fi
[ "$link" == "up" ] && action=add
[ "$link" == "down" ] && action=remove
[ -z "$action" ] && exit
# trigger a fake hotplug net event
INTERFACE=$WANDEV ACTION=$action /sbin/hotplug-call net

View File

@@ -7,7 +7,7 @@ get_if_creds() {
local section=$1
local network=$2
local net dev ssid key encryption band
config_get net $section "network"
config_get net $section "network" "lan"
if [ "$net" == "$network" ]; then
config_get dev $section "device"
band="$(uci -q get wireless.$dev.band)"
@@ -15,7 +15,6 @@ get_if_creds() {
config_get key $section key
config_get encryption $section encryption
config_get disabled $section disabled 0
echo "disabled for $band = $disabled" >>/tmp/dbg
[ $disabled -eq 1 ] && return
[ "$ssid" == "" -o "$band" == "" ] && return
json_add_object
@@ -87,7 +86,7 @@ duplicate_if_single_radio() {
case "$1" in
list)
echo '{ "get_creds": { "network": "str", "file": "str" }, "set_creds": { "file": "str" } }'
echo '{ "get_creds": { "network": "str", "file": "str" }, "set_creds": { "file": "str", "from_gui": "str" } }'
;;
call)
case "$2" in
@@ -121,10 +120,11 @@ case "$1" in
json_dump
;;
set_creds)
local file
local file from_gui
read input
json_load "$input"
json_get_var file file
json_get_var from_gui from_gui
validate_file "$file" || write_error "invalid filename (\"$file\"), file must be in /tmp and exist"
json_load "`cat $file`" || write_error "invalid file content"
json_select "wifi_ifaces" || write_error "invalid file content"
@@ -134,7 +134,7 @@ case "$1" in
json_add_string "status" success
json_dump
netmode-conf $file >/dev/null 2>&1 &
netmode-conf "$file" "$from_gui" >/dev/null 2>&1 &
;;
esac
;;

View File

@@ -56,6 +56,7 @@ 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
@@ -94,6 +95,7 @@ CONFIG_PACKAGE_libdaemon=y
CONFIG_PACKAGE_libffmpeg-mini=y
CONFIG_PACKAGE_libgmp=y
CONFIG_PACKAGE_libreadline=y
CONFIG_PACKAGE_loop-detector=m
CONFIG_PACKAGE_minidlna=y
CONFIG_PACKAGE_miniupnpd=y
CONFIG_PACKAGE_mtd-utils=y
@@ -115,6 +117,7 @@ CONFIG_PACKAGE_port-management=y
CONFIG_PACKAGE_power-management=y
CONFIG_PACKAGE_ppp-mod-pppoa=y
CONFIG_PACKAGE_ppp-mod-pppol2tp=y
CONFIG_PACKAGE_ppp-mod-pptp=y
CONFIG_PACKAGE_ppp-multilink=y
# CONFIG_PACKAGE_ppp is not set
CONFIG_PACKAGE_qos-scripts=y
@@ -156,6 +159,14 @@ CONFIG_BUSYBOX_CONFIG_FEATURE_UDHCP_8021Q=y
CONFIG_BUSYBOX_CONFIG_FIRST_SYSTEM_ID=100
CONFIG_BUSYBOX_CONFIG_HTTPD=y
CONFIG_BUSYBOX_CONFIG_INSMOD=y
CONFIG_BUSYBOX_CONFIG_MODINFO=y
CONFIG_BUSYBOX_CONFIG_MODPROBE=y
CONFIG_BUSYBOX_CONFIG_FEATURE_MODPROBE_BLACKLIST=y
CONFIG_BUSYBOX_CONFIG_FEATURE_CHECK_TAINTED_MODULE=y
CONFIG_BUSYBOX_CONFIG_FEATURE_MODUTILS_ALIAS=y
CONFIG_BUSYBOX_CONFIG_FEATURE_MODUTILS_SYMBOLS=y
CONFIG_BUSYBOX_CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
CONFIG_BUSYBOX_CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
CONFIG_BUSYBOX_CONFIG_LAST_SYSTEM_ID=999
CONFIG_BUSYBOX_CONFIG_LOGIN=y
CONFIG_BUSYBOX_CONFIG_LSMOD=y

View File

@@ -6,15 +6,12 @@ function extract_core {
topdir=$(pwd)
# Paths to packages that should be exported.
paths+='package/network/services/samba36 '
paths+='package/network/services/base-files '
paths+='package/network/services/dnsmasq '
paths+='package/network/services/dropbear '
paths+='package/network/services/odhcpd '
paths+='package/network/config/firewall '
paths+='package/network/config/netifd '
paths+='package/network/config/qos-scripts '
paths+='package/network/utils/iproute2 '
paths+='package/network/utils/curl '
paths+='package/system/procd '
paths+='package/utils/busybox '
function print_usage {

View File

@@ -9,14 +9,13 @@ function genconfig {
CURRENT_CONFIG_FILE=".current_config_file"
export CONFIGPATH="package/feeds/feed_inteno_packages/iop/configs"
CUSTPATH="customerconfigs"
CUSTREPO="git@private.inteno.se:customerconfigs"
export CUSTCONF="customerconfigs/customers"
export VERBOSE=0
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"
iopsys_brcm63xx_arm="dg400 eg400"
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"
ramips="mt7621"
target="bogus"
@@ -106,7 +105,7 @@ function genconfig {
local ALL="$1"
local CUSTOMER="$2"
if [ "$CUSTOMER" -a -d "$CUSTCONF/$CUSTOMER" ]; then
local boards="$(ls -1 "$CUSTCONF/$CUSTOMER" | grep -v common)"
local boards="$(ls -1 "$CUSTCONF/$CUSTOMER" | grep -v common | grep -v juci-theme)"
if [ "$boards" ]; then
echo "$CUSTOMER has following boards:"
for board in $boards; do
@@ -120,10 +119,10 @@ function genconfig {
exit 1
elif [ -d $CUSTCONF ]; then
local customers="$(ls -1 $CUSTCONF)"
if [ "$customers" -a "$1" == 1 ]; then
if [ "$customers" -a "$ALL" == 1 ]; then
for customer in $customers; do
echo $customer
local boards="$(ls -1 $CUSTCONF/$customer | grep -v common)"
local boards="$(ls -1 $CUSTCONF/$customer | grep -v common | grep -v juci-theme)"
if [ "$boards" ]; then
for board in $boards; do
echo -e "\t$board"
@@ -156,15 +155,17 @@ function genconfig {
setup_dirs()
{
if [ $DEVELOPER -eq 1 ]; then
if ssh -o ConnectTimeout=5 git@private.inteno.se 2>/dev/null | grep -qw ${CUSTREPO:22}; then
if [ ! -d "$CUSTPATH" ]; then
git clone "$CUSTREPO" "$CUSTPATH"
git clone "$CUSTREPO" "$CUSTPATH"
elif [ $IMPORT -eq 1 ]; then
cd $CUSTPATH
v "git pull"
git pull
cd - >/dev/null #go back
cd $CUSTPATH
v "git pull"
git pull
cd - >/dev/null #go back
fi
else
echo "You do not have access to $CUSTREPO"
fi
if [ ! -d "$FILEDIR" ]; then
@@ -192,9 +193,18 @@ function genconfig {
if [ $target == "bogus" ]; then
echo "Hardware profile does not exist"
exit 1
elif [ -n "$CUSTOMER" -a ! -d "$CUSTCONF/$CUSTOMER/$BOARDTYPE/" ]; then
echo "Customer profile does not exist"
exit 1
elif [ -n "$CUSTOMER" ]; then
if [ ! -d "$CUSTCONF/$CUSTOMER/" ]; then
echo "Customer profile for '$CUSTOMER' does not exist"
exit 1
elif [ ! -d "$CUSTCONF/$CUSTOMER/$BOARDTYPE/" ]; then
echo "'$BOARDTYPE' board profile does not exist for customer '$CUSTOMER'"
if [ -f "$CUSTCONF/$CUSTOMER/common/common.diff" ]; then
echo "Common profile configuration will be used"
else
exit 1
fi
fi
fi
# Generate base config
@@ -266,9 +276,9 @@ function genconfig {
[ $SRCTREEOVERR -eq 1 ] && echo CONFIG_SRC_TREE_OVERRIDE=y >> .config
# developer mode selected ?
echo "CONFIG_DEVEL=y" >>.config
if [ $DEVELOPER -eq 1 ]; then
# rewrite url to clone with ssh instead of http
echo "CONFIG_DEVEL=y" >>.config
echo "CONFIG_GITMIRROR_REWRITE=y" >>.config
[ $bcmAllowed -eq 0 ] && echo "CONFIG_BCM_OPEN=y" >> .config
[ $iceAllowed -eq 0 ] && echo "CONFIG_ICE_OPEN=y" >> .config
@@ -276,7 +286,6 @@ function genconfig {
[ $natalieAllowed -eq 0 ] && echo "CONFIG_NATALIE_OPEN=y" >> .config
[ $mediatekAllowed -eq 0 ] && echo "CONFIG_MEDIATEK_OPEN=y" >> .config
else
echo "CONFIG_DEVEL=n" >>.config
echo "CONFIG_GITMIRROR_REWRITE=n" >>.config
echo "CONFIG_BCM_OPEN=y" >> .config
echo "CONFIG_ICE_OPEN=y" >> .config
@@ -292,6 +301,11 @@ function genconfig {
# Needed to disable kmods for iopsys-brcm targets
touch package/kernel/linux/Makefile
# we need to signal to bradcom SDK that we have changed the board id
# currently boardparms.c and boardparms_voice.c is the only place that is depending on inteno boardid name
# so just touch that file.
[ -d ./build_dir ] && find build_dir/ -name "boardparms*c" -print0 2>/dev/null | xargs -0 touch 2>/dev/null
# Set default values based on selected parameters
v "$(make defconfig 2>&1)"
@@ -330,6 +344,7 @@ function genconfig {
-n|--no-update) export IMPORT=0;;
-v|--verbose) export VERBOSE="$(($VERBOSE + 1))";;
-p|--profile) export PROFILE="$2"; shift;;
-r|--repo) export CUSTREPO="$2"; shift;;
-s|--override) export SRCTREEOVERR=1;;
-h|--help) usage;;
-l|--list) list_customers 0 $2;;
@@ -343,6 +358,9 @@ function genconfig {
esac
shift;
done
CUSTREPO="${CUSTREPO:-git@private.inteno.se:customerconfigs}"
setup_dirs
create_and_copy_files "$1" "$2"
fi

View File

@@ -3,15 +3,15 @@
build_bcmkernel_consumer() {
local tarfile bcmkernelcommith sdkversion
sdkversion=$(grep "CONFIG_BRCM_SDK_VER.*=y" .config | awk -F'[_,=]' '{print$5}')
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.mk | cut -d'=' -f2)
# do not build bcmopen sdk if it was already built before
ssh $SERVER "ls $FPATH/bcmopen-$profile-$bcmkernelcommith.tar.gz" && return
ssh $SERVER "ls $FPATH/bcmopen-$board-$bcmkernelcommith.tar.gz" && return
cd ./build_dir/target-*_uClibc-0.9.33.*/bcmkernel-3.4-$sdkversion/bcm963xx/release
sh do_consumer_release -p $profile -y
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-$profile-$bcmkernelcommith.tar.gz
scp $tarfile $SERVER:$FPATH/bcmopen-$board-$bcmkernelcommith.tar.gz
rm -f $tarfile
cd $curdir
}
@@ -109,6 +109,7 @@ function generate_tarballs {
git remote -v | grep -q http && return # do not continue if this is an open SDK environment
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 '"')
curdir=$(pwd)

View File

@@ -34,7 +34,7 @@ function ssh_sysupgrade_latest {
exit 1
fi
{ cd `dirname $0`
IMAGE=`ls -Art bin/*/*.y2 | tail -n1`
IMAGE=`ls -Art bin/*/*.y[23] | tail -n1`
[ "$IMAGE" ] && [ -e "$IMAGE" ] && ./iop ssh_sysupgrade $1 $IMAGE $2
}
}

View File

@@ -394,7 +394,7 @@ insert_hash_in_feeds_config()
check_packages()
{
echo -e "${Green}_______________________________________________________________________________${Color_Off}"
echo "Now checking if any changes has been done to the packages."
echo "Now checking if any changes have been done to the packages."
echo -e "${Green}_______________________________________________________________________________${Color_Off}"
# only scan in the build directory that is currently in use.
@@ -536,7 +536,7 @@ check_feeds()
read answer
case $answer in
n|N)
n|N|'')
continue;;
esac
branch_uptodate feeds/${feed}

View File

@@ -21,7 +21,7 @@ define Package/iup
endef
define Package/iup/description
This package contains Intenos IUP Client
This package contains Inteno's IUP Client
endef
define Build/Compile

View File

@@ -4,6 +4,7 @@ echo $$ > /var/run/iup.pid
. /lib/functions.sh
. /lib/functions/network.sh
. /lib/functions/savecfg.sh
. /usr/share/libubox/jshn.sh
include /lib/upgrade
@@ -13,20 +14,30 @@ export IUPCONFFILES=/tmp/iup/sysupgrade.conffiles.tar.gz
export IUPMD5=/etc/configchecksums
export CONFILESLURP='/tmp/iup/*.conf'
export IUPTEMP="/tmp/iup"
export IUPUSERCFG="/tmp/iupusercfg"
export IUPUSERCFG_WIFI="/tmp/iupusercfg_wifi"
export INTERACTIVE=0
export VERBOSE=0
export CONF=1
export DESKEY=$(cat /proc/nvram/DesKey | tr -d '\n' | hexdump -e '16/1 "%02x"')
export MAC=$(cat /proc/nvram/BaseMacAddr)
export DESKEY=
export MAC=
export RANGE=10
export RETRYSTOP=5
export SLEEP=10
#remove whitespace
MAC=${MAC// /}
#lower to upper Conversion
MAC=$(echo $MAC | tr '[a-z]' '[A-Z]')
local sysinfo=$(ubus call router.system info)
json_load "$sysinfo"
json_select system
json_get_var MAC basemac
json_select ..
json_select keys
json_get_var DESKEY des
json_select ..
# MAC lowercase to uppercase and remove ':'
MAC=$(echo $MAC | tr '[a-z]' '[A-Z]' | tr -d ':')
# Convert DESKEY to HEX format
DESKEY=$(echo $DESKEY | tr -d '\n' | hexdump -e '16/1 "%02x"')
# no verbose: no output
# -v log to system log
@@ -69,41 +80,7 @@ reload ()
save_usercfg()
{
rm -f $IUPUSERCFG $IUPUSERCFG_WIFI
touch $IUPUSERCFG $IUPUSERCFG_WIFI
# save the firewall redirects/port forwarding
uci show firewall | grep redirect >> $IUPUSERCFG
# save the parental rules
local parentalrules=$(uci show firewall | grep -i "Parental Rule" | grep -o "rule\[.*\]")
for rule in $parentalrules ; do
rule=${rule//\[/\\[} # escape [
rule=${rule//]/\]} # escape ]
uci show firewall | grep "$rule" >>$IUPUSERCFG
done
# tranfsorm the output of uci show into a uci script
# prepend "set" to each line NOT containing "]="
# firewall.@redirect[0].enabled='1' becomes
# set firewall.@redirect[0].enabled='1'
sed -i '/.*]=.*/! s/.*/set \0/' $IUPUSERCFG
# prepend "add" to each line containing "]="
# AND keep only the package name (before the first dot) and section type (after equal)
# firewall.@redirect[0]=redirect becomes
# add firewall redirect
sed -i 's/\(.*\)\..*]=\(.*\)/add \1 \2/' $IUPUSERCFG
# change all the array indexes to [-1]
sed -i 's/\[.\?.\?.\?.\?\]/[-1]/' $IUPUSERCFG
# commit at the end of the script
[ -s $IUPUSERCFG ] && echo "commit" >> $IUPUSERCFG
# save wireless interfaces
uci show wireless | grep "wifi-iface" > $IUPUSERCFG_WIFI
savecfg_save_config fw_redirect fw_parental wifi
}
apply_usercfg()
@@ -114,64 +91,11 @@ apply_usercfg()
config_get_bool keep configserver keepuserconfig "0"
v "apply_usercfg(): keepuserconfig = $keep"
if [ "$keep" != "1" ] ; then
rm -f $IUPUSERCFG $IUPUSERCFG_WIFI
savecfg_rm_files
return
fi
local index ifname network
local newindex newifname newnetwork
# loop through all the user wifi-ifaces
for index in $(seq 0 99) ; do
ifname=$(sed -n 's/.*wifi-iface\['$index'\]\.ifname='\''\(.*\)'\''/\1/p' $IUPUSERCFG_WIFI )
[ "$ifname" ] || break
network=$(sed -n 's/.*wifi-iface\['$index'\]\.network='\''\(.*\)'\''/\1/p' $IUPUSERCFG_WIFI )
newindex=""
newifname=""
newnetwork=""
# loop through all the newly configured wifi-ifaces
for newindex in $(seq 0 99) ; do
newifname=$( uci show wireless | grep wifi-iface | sed -n 's/.*wifi-iface\['$newindex'\]\.ifname='\''\(.*\)'\''/\1/p' )
if [ -z "$newifname" ] ; then
# no newifname means that all the wifi-ifaces have already been parsed
newindex="-1"
break
fi
newnetwork=$(uci show wireless | grep wifi-iface | sed -n 's/.*wifi-iface\['$newindex'\]\.network='\''\(.*\)'\''/\1/p' )
# two wifi interfaces are the same if "ifname" and "network" are the same
if [ "$newifname" == "$ifname" ] && [ "$newnetwork" == "$network" ] ; then
break
fi
done
# prepend "set" to each line NOT containing "]="
# wireless.@wifi-iface[$index].<option>='<value>' becomes
# set wireless.@wifi-iface[$index].<option>='<value>'
sed -i '/.*]=.*/! s/\(.*\[\)'$index'\(\].*\)/set \1'$newindex'\2/' $IUPUSERCFG_WIFI
if [ "$newindex" == "-1" ] ; then
# prepend "add" to each line containing "]="
# AND keep only the package name (before the first dot) and section type (after equal)
# wireless.@wifi-iface[0]=wifi-iface becomes
# add wireless wifi-iface
sed -i 's/\(.*\)\..*\['$index'\]=\(.*\)/add \1 \2/' $IUPUSERCFG_WIFI
else
# no need to create a new uci section, just delete the line defining a new section
sed -i '/\(.*\)\..*\['$index'\]=\(.*\)/d' $IUPUSERCFG_WIFI
fi
done
# commit at the end of the script
[ -s $IUPUSERCFG_WIFI ] && echo "commit" >> $IUPUSERCFG_WIFI
# run the uci batch scripts
cat $IUPUSERCFG | uci batch >/dev/null 2>&1
cat $IUPUSERCFG_WIFI | uci batch >/dev/null 2>&1
rm -f $IUPUSERCFG $IUPUSERCFG_WIFI
savecfg_apply_config fw_redirect fw_parental wifi
}
handle_provisioning() {
@@ -271,7 +195,7 @@ handle_Downloaded_file()
for f in $CONFILESLURP
do
v "File to be applied $f and config $(cat $f)"
uci import -f $f
uci -f $f import
done
pack=$(get_packages $CONFILESLURP)
v "Packages to be commited: $pack"
@@ -476,8 +400,6 @@ parse_dhcp_options()
json_get_var vlanid vlanid # option 132
json_get_var vlanpriority vlanpriority # option 133
v "Processing dhcp options"
if [ $privopt224 ]; then
v "dhcp option 224 firmware url $privopt224"
handle_option224 $privopt224
@@ -555,13 +477,22 @@ wait_for_default_gateway()
return 0
fi
v "Waiting for default gateway. Countdown $wait_time seconds"
# try the nameservers too
for ns in $(grep nameserver /var/resolv.conf.auto | awk '{print $2}'); do
if ping -q -w 1 -c 1 $device $ns >/dev/null 2>&1 ; then
[ "$wait_time" -lt "60" ] && v "Name server $ns is reachable"
sleep $wait_interval
return 0
fi
done
v "Waiting for default gateway or name server. Countdown $wait_time seconds"
sleep $wait_interval
wait_time=$((wait_time - wait_interval))
[ "$wait_time" -le "0" ] && break # timer expired
done
return 1 # default gateway not reachable
return 1 # default gateway and name server are not reachable
}
@@ -587,7 +518,7 @@ main()
done
if ! wait_for_default_gateway ; then
v "Default gateway is not reachable. Aborting iup."
v "Neither default gateway nor name server are reachable. Aborting iup."
exit 1
fi

View File

@@ -0,0 +1,113 @@
. /lib/network/config.sh
# FIX: for EG300 WAN port for release 3.13.1 - 4.x
if [ "$INTERFACE" == "eth2" ]; then
touch /var/update.eth2
fi
# end FIX
addif() {
# check if wan had a event and start all related services
wan=`uci -q get layer2_interface_ethernet.Wan.baseifname`
if [ "$INTERFACE" == "$wan" ]; then
/etc/init.d/layer2_interface_ethernet start
/etc/init.d/layer2_interface_vlan start
fi
}
delif() {
##remove ethernet wan and nuke any vlans associated
wan=`uci -q get layer2_interface_ethernet.Wan.baseifname`
if [ "$INTERFACE" == "$wan" ]; then
/etc/init.d/layer2_interface_ethernet stop
fi
}
# 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 landev=$(db get hw.board.ethernetLanPorts)
local ledontest
for dev in $landev; do
ledontest=$(cat /sys/class/net/$dev/operstate)
if [ "$ledontest" == "up" ]; then
return 0
fi
done
return 1
}
# true if adsl or vdsl is up.
dsltest() {
if cat /var/state/layer2_interface 2>/dev/null | grep 'adsl\|vdsl' | grep up; then
return 0
else
return 1
fi
}
case "$ACTION" in
add|register)
case "$PHYSDEVDRIVER" in
natsemi) sleep 1 ;;
esac
addif
local interfname=$(interfacename $INTERFACE)
local operstate=$(cat /sys/class/net/$INTERFACE/operstate)
# if [ "$operstate" == "up" ]; then
if true ; then
case "$interfname" 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)
local interfname=$(interfacename $INTERFACE)
local operstate=$(cat /sys/class/net/$INTERFACE/operstate)
if [ "$operstate" == "down" ]; then
case "$interfname" 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"}'
# is this needed here ?? don't the dsl hotplug event control this ???
# $(dsltest) || ubus call led.dsl set '{"state":"off"}'
;;
esac
fi
delif
;;
esac

View File

@@ -16,6 +16,7 @@ start_service() {
local AnnexL
local ADSL2plus
local VDSL2
local GFast
local a8a
local b8b
local c8c
@@ -23,11 +24,14 @@ start_service() {
local a12a
local b12b
local a17a
local a30a
local b35b
local US0
local bitswap
local sra
local vdsl
config_load layer2_interface
config_get Glite capabilities Glite
config_get GDmt capabilities GDmt
@@ -36,6 +40,7 @@ start_service() {
config_get ADSL2plus capabilities ADSL2plus
config_get AnnexL capabilities AnnexL
config_get VDSL2 capabilities VDSL2
config_get GFast capabilities GFast
config_get AnnexM capabilities AnnexM
config_get a8a capabilities 8a
@@ -45,6 +50,9 @@ start_service() {
config_get a12a capabilities 12a
config_get b12b capabilities 12b
config_get a17a capabilities 17a
config_get a30a capabilities 30a
config_get b35b capabilities 35b
config_get BrcmPriv1 capabilities BrcmPriv1
config_get US0 capabilities US0
config_get bitswap capabilities bitswap
@@ -58,6 +66,7 @@ start_service() {
ADSL2plus=$(echo $ADSL2plus | sed 's/Enabled\|1/p/g')
AnnexM=$(echo $AnnexM | sed 's/Enabled\|1/m/g')
VDSL2=$(echo $VDSL2 | sed 's/Enabled\|1/v/g')
GFast=$(echo $GFast | sed 's/Enabled\|1/f/g')
a8a=$(echo $a8a | sed 's/Enabled\|1/8a/g')
b8b=$(echo $b8b | sed 's/Enabled\|1/8b/g')
@@ -66,7 +75,10 @@ start_service() {
a12a=$(echo $a12a | sed 's/Enabled\|1/12a/g')
b12b=$(echo $b12b | sed 's/Enabled\|1/12b/g')
a17a=$(echo $a17a | sed 's/Enabled\|1/17a/g')
a30a=$(echo $a30a | sed 's/Enabled\|1/30a/g')
b35b=$(echo $b35b | sed 's/Enabled\|1/BrcmPriv1/g')
BrcmPriv1=$(echo $BrcmPriv1 | sed 's/Enabled\|1/BrcmPriv1/g')
[ -n "$b35b" ] && BrcmPriv1=""
US0=$(echo $US0 | sed 's/1/on/g')
US0=$(echo $US0 | sed 's/0/off/g')
bitswap=$(echo $bitswap | sed 's/1/on/g')
@@ -83,13 +95,17 @@ start_service() {
json_get_var vdsl vdsl
if [ $vdsl -eq 1 ]; then
echo "xdslctl start --up --mod $GDmt$Glite$T1413$ADSL2$AnnexL$ADSL2plus$AnnexM$VDSL2 --profile \"$a8a $b8b $c8c $d8d $a12a $b12b $a17a\" --sra $sra --bitswap $bitswap --us0 $US0"
xdslctl start --up --mod $GDmt$Glite$T1413$ADSL2$AnnexL$ADSL2plus$AnnexM$VDSL2 --profile "$a8a $b8b $c8c $d8d $a12a $b12b $a17a" --sra $sra --bitswap $bitswap --us0 $US0
echo "xdslctl start --up --mod $GDmt$Glite$T1413$ADSL2$AnnexL$ADSL2plus$AnnexM$VDSL2$GFast --profile \"$a8a $b8b $c8c $d8d $a12a $b12b $a17a $a30a $b35b $BrcmPriv1\" --sra $sra --bitswap $bitswap --us0 $US0"
xdslctl start --up --mod $GDmt$Glite$T1413$ADSL2$AnnexL$ADSL2plus$AnnexM$VDSL2$GFast --profile "$a8a $b8b $c8c $d8d $a12a $b12b $a17a $a30a $b35b $BrcmPriv1" --sra $sra --bitswap $bitswap --us0 $US0
else
echo "xdslctl start --up --mod $GDmt$Glite$T1413$ADSL2$AnnexL$ADSL2plus$AnnexM --sra $sra --bitswap $bitswap"
xdslctl start --up --mod $GDmt$Glite$T1413$ADSL2$AnnexL$ADSL2plus$AnnexM --sra $sra --bitswap $bitswap
fi
if [ "$GFast" == "f" ]; then
# enable V43 tone set for GFAST
xdslctl configure1 --phycfg 0 0 0 0 0 0 0 0 0 0 0 0x400000 0x400000
fi
}

View File

@@ -50,10 +50,11 @@ addethernet() {
config_get baseifname $1 baseifname
config_get ifname $1 ifname
config_get bridge $1 bridge
config_get mac2 $1 mac2
ifname="${ifname:-$baseifname.1}"
brcm_virtual_interface_rules "$baseifname" "$ifname" "$bridge"
brcm_virtual_interface_rules "$baseifname" "$ifname" "$bridge" "$mac2"
}

View File

@@ -1,30 +1,13 @@
#!/bin/sh
local hasEthWan="1"
local hasEthWan="$(db -q get hw.board.hasEthWan)"
hasEthWan=${hasEthWan:-1}
local hasAdsl="$(db -q get hw.board.hasAdsl)"
local hasVdsl="$(db -q get hw.board.hasVdsl)"
local LANPORTS="$(db -q get hw.board.ethernetLanPorts)"
local WANPORTS=""
# populate layer2_interface_ethernet #
if [ "$hasEthWan" == "1" ]; then
local wanEthernetPort="$(db -q get hw.board.ethernetWanPort)"
wanEthernetPort="${wanEthernetPort:-eth0}"
if [ ! -f /etc/config/layer2_interface_ethernet -o -z "$(uci -q get layer2_interface_ethernet.@ethernet_interface[0].ifname)" ]; then
cat > /etc/config/layer2_interface_ethernet <<EOF
config ethernet_interface 'Wan'
option name 'WAN'
option baseifname '${wanEthernetPort}'
option ifname '${wanEthernetPort}.1'
EOF
fi
local ifname="$(uci -q get layer2_interface_ethernet.@ethernet_interface[0].ifname)"
[ -n "$WANPORTS" ] && WANPORTS="$WANPORTS $ifname" || WANPORTS="$ifname"
elif [ "$hasEthWan" == "0" ]; then
echo "" > /etc/config/layer2_interface_ethernet
fi
# populate layer2_interface #
if [ "$hasAdsl" == "1" ]; then
if [ ! -f /etc/config/layer2_interface -o -z "$(uci -q get layer2_interface.capabilities)" ]; then
@@ -60,6 +43,28 @@ elif [ "$hasAdsl" == "0" -a "$hasVdsl" == "0" ]; then
echo "" > /etc/config/layer2_interface
fi
# populate layer2_interface_vdsl #
if [ "$hasVdsl" == "1" ]; then
local wanVdslPort=$(db -q get hw.board.vdslWanPort)
wanVdslPort="${wanVdslPort:-ptm0}"
if [ ! -f /etc/config/layer2_interface_vdsl -o -z "$(uci -q get layer2_interface_vdsl.@vdsl_interface[0].ifname)" ]; then
cat > /etc/config/layer2_interface_vdsl <<EOF
config vdsl_interface
option 'unit' '0'
option 'ifname' '${wanVdslPort}.1'
option 'baseifname' '${wanVdslPort}'
option 'name' 'VDSL2'
option 'dslat' '1'
option 'ptmprio' '1'
option 'ipqos' '1'
EOF
fi
local ifname="$(uci -q get layer2_interface_vdsl.@vdsl_interface[0].ifname)"
[ -n "$WANPORTS" ] && WANPORTS="$WANPORTS $ifname" || WANPORTS="$ifname"
elif [ "$hasVdsl" == "0" ]; then
echo "" > /etc/config/layer2_interface_vdsl
fi
# populate layer2_interface_adsl #
if [ "$hasAdsl" == "1" ]; then
local wanAdslPort=$(db -q get hw.board.adslWanPort)
@@ -84,26 +89,22 @@ elif [ "$hasAdsl" == "0" ]; then
echo "" > /etc/config/layer2_interface_adsl
fi
# populate layer2_interface_vdsl #
if [ "$hasVdsl" == "1" ]; then
local wanVdslPort=$(db -q get hw.board.vdslWanPort)
wanVdslPort="${wanVdslPort:-ptm0}"
if [ ! -f /etc/config/layer2_interface_vdsl -o -z "$(uci -q get layer2_interface_vdsl.@vdsl_interface[0].ifname)" ]; then
cat > /etc/config/layer2_interface_vdsl <<EOF
config vdsl_interface
option 'unit' '0'
option 'ifname' '${wanVdslPort}.1'
option 'baseifname' '${wanVdslPort}'
option 'name' 'VDSL2'
option 'dslat' '1'
option 'ptmprio' '1'
option 'ipqos' '1'
# populate layer2_interface_ethernet #
if [ "$hasEthWan" == "1" ]; then
local wanEthernetPort="$(db -q get hw.board.ethernetWanPort)"
wanEthernetPort="${wanEthernetPort:-eth0}"
if [ ! -f /etc/config/layer2_interface_ethernet -o -z "$(uci -q get layer2_interface_ethernet.@ethernet_interface[0].ifname)" ]; then
cat > /etc/config/layer2_interface_ethernet <<EOF
config ethernet_interface 'Wan'
option name 'WAN'
option baseifname '${wanEthernetPort}'
option ifname '${wanEthernetPort}.1'
EOF
fi
local ifname="$(uci -q get layer2_interface_vdsl.@vdsl_interface[0].ifname)"
local ifname="$(uci -q get layer2_interface_ethernet.@ethernet_interface[0].ifname)"
[ -n "$WANPORTS" ] && WANPORTS="$WANPORTS $ifname" || WANPORTS="$ifname"
elif [ "$hasVdsl" == "0" ]; then
echo "" > /etc/config/layer2_interface_vdsl
elif [ "$hasEthWan" == "0" ]; then
echo "" > /etc/config/layer2_interface_ethernet
fi
# populate network config ifnames #

View File

@@ -261,6 +261,7 @@ wlmngr_startWsc()
nvram set wps_timeout_enable=0
#nvram get wps_config_method
nvram set wps_version2=enabled # extra
nvram set wps_oob_configured=1
nvram set lan_wps_oob=disabled # extra
nvram set lan_wps_reg=enabled # extra

View File

@@ -161,12 +161,38 @@ addbrcmvlan()
fi
}
update_last_mac_group()
{
local ifname=$1
local last_mac_group=$2
local full_mac modified_mac dev_mac
full_mac="$(ifconfig $ifname | awk '{print $NF; exit}')"
[ "${full_mac}" == "" ] && return
modified_mac="${full_mac:0:15}${last_mac_group}"
devs="wl0 wl1 bcmsw"
for dev in $devs; do
dev_mac="$(ifconfig $dev | awk '{print $NF; exit}')"
if [ "$dev_mac" == "$modified_mac" ]; then
return
fi
done
ifconfig $ifname hw ether "${modified_mac}"
}
brcm_virtual_interface_rules()
{
local baseifname=$1
local ifname=$2
local bridge=$3
local last_mac_group=$4
bridge="${bridge:-0}"
@@ -230,6 +256,10 @@ brcm_virtual_interface_rules()
vlanctl --if $baseifname --rx --tags 0 --set-rxif $ifname --filter-vlan-dev-mac-addr 1 --rule-insert-before -1
fi
if [ "$last_mac_group" != "" ]; then
update_last_mac_group $ifname $last_mac_group
fi
ifconfig $ifname up
ifconfig $ifname multicast
}

48
loop-detector/Makefile Normal file
View File

@@ -0,0 +1,48 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=loop-detector
PKG_VERSION:=1.0
PKG_SOURCE_VERSION:=d0fb770eacd6691b98df138b60f5116e02f71a9b
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=http://public.inteno.se:/loop-detector
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/loop-detector
SECTION:=utils
CATEGORY:=Utilities
TITLE:=L2 Loop detector
DEPENDS:= +libpcap +libuci +libpthread
endef
define Package/loop-detector/description
L2 Loop detection package
endef
TARGET_CFLAGS += \
-D_GNU_SOURCE
TARGET_LDFLAGS += \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
CONFIGURE_ARGS += \
--with-uci-include-path=$(STAGING_DIR)/usr/include \
--with-libubox-include-path=$(STAGING_DIR)/usr/include \
--with-libubus-include-path=$(STAGING_DIR)/usr/include
define Package/loop-detector/install
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/loop-detector $(1)/sbin/
$(INSTALL_DIR) $(1)/etc/init.d
$(CP) ./files/loop_detection.init $(1)/etc/init.d/loop_detection
$(INSTALL_DIR) $(1)/etc/config
$(CP) ./files/loop_detection.config $(1)/etc/config/loop_detection
endef
$(eval $(call BuildPackage,loop-detector))

View File

@@ -0,0 +1,5 @@
config loop-detect loop
option enabled '1'
option discovery_interval '10'
option recovery_check_tries '5'

View File

@@ -0,0 +1,36 @@
#!/bin/sh /etc/rc.common
START=21
STOP=89
USE_PROCD=1
NAME=loop-detector
start_service() {
local enabled
config_load loop_detection
config_get_bool enabled loop enabled 1
if [ $enabled -eq 1 ]; then
procd_open_instance
procd_set_param command "/sbin/loop-detector"
procd_set_param respawn
procd_close_instance
fi
}
stop() {
service_stop /sbin/loop-detector
}
service_triggers()
{
procd_add_reload_trigger loop_detection
}
reload_service() {
stop
start
}

View File

@@ -5,13 +5,13 @@ PKG_NAME:=mtk-bndstrg
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_SOURCE_VERSION:=8a804320c53dead1c9b9f3650cbbc58908c76832
PKG_SOURCE_VERSION:=a67f5ccdf9bc6810f15f1ece9edaad5e89cad0f7
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=http://public.inteno.se:/mtk-bndstrg
PKG_SOURCE:=$(PKG_NAME).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk

View File

@@ -23,6 +23,7 @@ PKG_SOURCE_PROTO:=git
endif
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=0
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/image.mk

View File

@@ -12,7 +12,7 @@ PKG_NAME:=peripheral_manager
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_SOURCE_VERSION:=ff2cf8bfbd3a04731088e9f4540796696e961382
PKG_SOURCE_VERSION:=959eca8ab2b50eaccfff9c710cffe5b317bb6ad1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=http://public.inteno.se/peripheral_manager

View File

@@ -62,18 +62,25 @@ get_current_status() {
fi
}
sfp_flag(){
get_flag(){
local port=$1
local sfptype=$2
local media="$(ethctl $port media-type 2>&1 | grep 'This is probably wrong')"
[ -z "$media" ] && echo "" || echo "sfp $sfptype"
local eg300="$(ethctl $port media-type 2>&1 | grep 'This is probably wrong')"
local eg400="$(ethctl $port media-type 2>&1 | grep 'Error: Interface eth0 has sub ports, please specified one')"
if [ -n "$eg300" ]; then
echo "sfp copper"
elif [ -n "$eg400" ]; then
echo "port 10"
else
echo ""
fi
}
set_port_status() {
local port="$1"
local status="$2"
local flag=$(sfp_flag $port "copper")
local curstatus=$(get_current_status $port $flag)
local flag=$(get_flag $port)
local curstatus=$(get_current_status "$port" "$flag")
ifconfig $port >/dev/null 2>&1 || return
@@ -93,14 +100,14 @@ set_port_status() {
esac
;;
10*AUTO)
ethctl $port media-type $flag advertise $status
ethctl $port media-type advertise $status $flag
;;
10*)
ethctl $port media-type $flag $status
ethctl $port media-type $status $flag
;;
*)
ethctl $port media-type $flag advertise 1000FDAUTO
ethctl $port media-type $flag auto
ethctl $port media-type advertise 1000FDAUTO $flag
ethctl $port media-type auto $flag
;;
esac
else

View File

@@ -23,18 +23,24 @@ get_current_status() {
fi
}
sfp_flag(){
get_flag(){
local port=$1
local sfptype=$2
local media="$(ethctl $port media-type 2>&1 | grep 'This is probably wrong')"
[ -z "$media" ] && echo "" || echo "sfp $sfptype"
local eg300="$(ethctl $port media-type 2>&1 | grep 'This is probably wrong')"
local eg400="$(ethctl $port media-type 2>&1 | grep 'Error: Interface eth0 has sub ports, please specified one')"
if [ -n "$eg300" ]; then
echo "sfp fiber"
elif [ -n "$eg400" ]; then
echo "port 9"
else
echo ""
fi
}
set_fiber_status() {
local port="$1"
local status="$2"
local flag=$(sfp_flag $port "fiber")
local curstatus=$(get_current_status $port $flag)
local flag=$(get_flag $port)
local curstatus=$(get_current_status "$port" "$flag")
case "$status" in
disabled)

View File

@@ -6,9 +6,9 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=questd
PKG_VERSION:=3.1.38
PKG_VERSION:=3.1.40
PKG_SOURCE_VERSION:=85785b97a1526114ae521beacb1b302c3cb914ab
PKG_SOURCE_VERSION:=b2794295fdf9469b6cd8ba1544f291d4b83a7d5a
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=http://public.inteno.se:/questd
@@ -43,7 +43,7 @@ export QUESTD_CFLAGS
define Package/questd
CATEGORY:=Utilities
DEPENDS:=+libuci +libubox +ubus +libpthread +(TARGET_iopsys_ramips_ex400):swconfig +(TARGET_iopsys_ramips_ex400):libnl-tiny
DEPENDS:=+libuci +libubox +ubus +libpthread +(TARGET_iopsys_ramips_ex400):swconfig +(TARGET_iopsys_ramips_ex400):libnl-tiny +libopenssl
TITLE:=router info daemon
endef

View File

@@ -21,8 +21,8 @@ start_service() {
}
stop() {
service_stop /sbin/questd
service_stop /sbin/graphd
#stop_service() is called after procd killed the service
echo ;
}
service_triggers()

View File

@@ -1,6 +1,7 @@
#!/bin/sh
. /lib/functions.sh
. /usr/share/libubox/jshn.sh
# 1. sleep for $SLEEP_LONG seconds
# 2. run the check_* functions
@@ -22,7 +23,7 @@ NPROC_COUNT=4 # number of time that the NPROC_LIMIT has to be hit to trigger a p
NPROC_NFAIL=0 # current consecutive Number of FAILures. process restarts when NPROC_NFAIL == NPROC_COUNT
# memmory limit
MEM_LIMIT=50000
MEM_LIMIT=20000
MEM_COUNT=4
MEM_NFAIL=0
@@ -31,6 +32,9 @@ PCPU_LIMIT=38
PCPU_COUNT=4
PCPU_NFAIL=0
# network call check
NNET_NFAIL=0
UBUS_TIMEOUT=5
@@ -39,7 +43,7 @@ ACSDBIN=$(which acsd)
restart_questd()
{
logger -s -t $0[$$] "Restarting questd. $NPROC_NFAIL $MEM_NFAIL $PCPU_NFAIL"
logger -s -t $0[$$] "Restarting questd. $NPROC_NFAIL $MEM_NFAIL $PCPU_NFAIL $NNET_NFAIL"
killall -q -KILL questd
/etc/init.d/quest stop
@@ -49,6 +53,7 @@ restart_questd()
NPROC_NFAIL=0
MEM_NFAIL=0
PCPU_NFAIL=0
NNET_NFAIL=0
}
@@ -110,21 +115,38 @@ check_pcpu()
check_ubuscall()
{
local rv
local rv
ubus -t $UBUS_TIMEOUT call router.system info >/dev/null 2>&1
rv=$?
ubus -t $UBUS_TIMEOUT call router.system info >/dev/null 2>&1
rv=$?
[ "$rv" = "0" ] && return 0
return 1
[ "$rv" = "0" ] && return 0
return 1
}
check_ubus_network_call() {
[ "$(uci -q get network.lan)" == "interface" ] || return 0
json_load "$(ifstatus lan)" || return 0
json_get_var up up
[ $up -eq 1 ] || return 0
local ifname="$(uci -q get network.lan.ifname)"
[ -z "$ifname" -o "${ifname:0:3}" == "br-" ] && return 0
ubus -t 5 call router.network ports '{"network":"lan"}' | grep -q statistics || {
NNET_NFAIL=1
return 1
}
return 0
}
restart_bsd()
{
logger -s -t $0[$$] "Restarting bsd."
killall -q -KILL bsd
bsd
logger -s -t $0[$$] "Restarting WiFi and Band Steering daemon due to bsd hangup."
killall -q -15 bsd 2>/dev/null
wlctl -i wl0 down 2>/dev/null
wlctl -i wl1 down 2>/dev/null
wlctl -i wl0 up 2>/dev/null
wlctl -i wl1 up 2>/dev/null
bsd &
}
check_bsdcall()
@@ -141,9 +163,13 @@ check_bsdcall()
restart_acsd()
{
logger -s -t $0[$$] "Restarting acsd."
killall -q -KILL acsd
acsd &
logger -s -t $0[$$] "Restarting WiFi and Auto Channel Selection daemon due to acsd high CPU usage."
killall -q -9 acsd 2>/dev/null
wlctl -i wl0 down 2>/dev/null
wlctl -i wl1 down 2>/dev/null
wlctl -i wl0 up 2>/dev/null
wlctl -i wl1 up 2>/dev/null
acsd
}
check_acsd()
@@ -155,7 +181,7 @@ check_acsd()
for p in $pcpu; do
p=${p%%%*}
if [ "$p" -ge "20" ]; then
if [ "$p" -ge "40" ]; then
return 1
fi
done
@@ -193,8 +219,11 @@ main()
"$restart_mem" = "1" -o \
"$restart_pcpu" = "1" ]
then
# check_ubuscall || restart_questd
restart_questd
else
if [ "$sample" -ge "$SAMPLES" ]; then
check_ubus_network_call || restart_questd
fi
fi
if [ "$BSDBIN" ] ; then

View File

@@ -55,11 +55,14 @@ define Package/samba2-client
endef
TARGET_CFLAGS += $(FPIC)
WERR := -Werror=format-security
TARGET_CFLAGS_WITHOUT_WERR := $(filter-out $(WERR),$(TARGET_CFLAGS))
define Build/Compile
rm -rf $(PKG_INSTALL_DIR)
mkdir -p $(PKG_INSTALL_DIR)
(cd $(PKG_BUILD_DIR)/source ; rm -rf config.{cache,status} ; \
CFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE" \
./configure \
$(HOST_CONFIGURE_VARS) \
$(HOST_CONFIGURE_ARGS) \
@@ -93,7 +96,7 @@ define Build/Compile
clean
(cd $(PKG_BUILD_DIR)/source; rm -rf config.{cache,status}; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE -DNDEBUG -DSHMEM_SIZE=524288 -Dfcntl=fcntl64" \
CFLAGS="$(TARGET_CFLAGS_WITHOUT_WERR) -D_GNU_SOURCE -DNDEBUG -DSHMEM_SIZE=524288" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS) $(LIBGCC_S)" \
ac_cv_lib_cups_httpConnect=no \

View File

@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=samba3
PKG_VERSION:=3.0.37
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MD5SUM:=11ed2bfef4090bd5736b194b43f67289

View File

@@ -0,0 +1,38 @@
diff --git a/source/smbd/process.c b/source/smbd/process.c
index e861e16..6499bc7 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -1159,6 +1159,7 @@ int chain_reply(char *inbuf,char *outbuf,int size,int bufsize)
{
static char *orig_inbuf;
static char *orig_outbuf;
+ static int orig_size;
int smb_com1, smb_com2 = CVAL(inbuf,smb_vwv0);
unsigned smb_off2 = SVAL(inbuf,smb_vwv1);
char *inbuf2, *outbuf2;
@@ -1178,6 +1179,13 @@ int chain_reply(char *inbuf,char *outbuf,int size,int bufsize)
/* this is the first part of the chain */
orig_inbuf = inbuf;
orig_outbuf = outbuf;
+ orig_size = size;
+ }
+
+ /* Validate smb_off2 */
+ if ((smb_off2 < smb_wct - 4) || orig_size < (smb_off2 + 4 - smb_wct)) {
+ exit_server_cleanly("Bad chained packet");
+ return -1;
}
/*
@@ -1192,6 +1200,11 @@ int chain_reply(char *inbuf,char *outbuf,int size,int bufsize)
SSVAL(outbuf,smb_vwv1,smb_offset(outbuf+outsize,outbuf));
SCVAL(outbuf,smb_vwv0,smb_com2);
+ if (outsize <= smb_wct) {
+ exit_server_cleanly("Bad chained packet");
+ return -1;
+ }
+
/* remember how much the caller added to the chain, only counting stuff
after the parameter words */
chain_size += outsize - smb_wct;

View File

@@ -0,0 +1,82 @@
diff --git a/source/lib/util_sid.c b/source/lib/util_sid.c
index 032be9a..2c5a0c7 100644
--- a/source/lib/util_sid.c
+++ b/source/lib/util_sid.c
@@ -403,6 +403,9 @@ BOOL sid_parse(const char *inbuf, size_t len, DOM_SID *sid)
sid->sid_rev_num = CVAL(inbuf, 0);
sid->num_auths = CVAL(inbuf, 1);
+ if (sid->num_auths > MAXSUBAUTHS) {
+ return false;
+ }
memcpy(sid->id_auth, inbuf+2, 6);
if (len < 8 + sid->num_auths*4)
return False;
diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index 7479894..eebc0fd 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -1771,7 +1771,9 @@ static void dump_sid(const char *field, struct berval **values)
int i;
for (i=0; values[i]; i++) {
DOM_SID sid;
- sid_parse(values[i]->bv_val, values[i]->bv_len, &sid);
+ if (!sid_parse(values[i]->bv_val, values[i]->bv_len, &sid)) {
+ return;
+ }
printf("%s: %s\n", field, sid_string_static(&sid));
}
}
diff --git a/source/libsmb/cliquota.c b/source/libsmb/cliquota.c
index 2a47ae2..5721b67 100644
--- a/source/libsmb/cliquota.c
+++ b/source/libsmb/cliquota.c
@@ -117,7 +117,9 @@ static BOOL parse_user_quota_record(const char *rdata, unsigned int rdata_count,
}
#endif /* LARGE_SMB_OFF_T */
- sid_parse(rdata+40,sid_len,&qt.sid);
+ if (!sid_parse(rdata+40,sid_len,&qt.sid)) {
+ return False;
+ }
qt.qtype = SMB_USER_QUOTA_TYPE;
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index 2b9d5da..60bab7e 100644
--- a/source/smbd/nttrans.c
+++ b/source/smbd/nttrans.c
@@ -2424,7 +2424,10 @@ static int call_nt_transact_ioctl(connection_struct *conn, char *inbuf, char *ou
/* unknown 4 bytes: this is not the length of the sid :-( */
/*unknown = IVAL(pdata,0);*/
- sid_parse(pdata+4,sid_len,&sid);
+ if (!sid_parse(pdata+4,sid_len,&sid)) {
+ return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
+ }
+
DEBUGADD(10,("for SID: %s\n",sid_string_static(&sid)));
if (!sid_to_uid(&sid, &uid)) {
@@ -2662,7 +2665,9 @@ static int call_nt_transact_get_user_quota(connection_struct *conn, char *inbuf,
break;
}
- sid_parse(pdata+8,sid_len,&sid);
+ if (!sid_parse(pdata+8,sid_len,&sid)) {
+ return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
+ }
if (vfs_get_ntquota(fsp, SMB_USER_QUOTA_TYPE, &sid, &qt)!=0) {
ZERO_STRUCT(qt);
@@ -2828,7 +2833,9 @@ static int call_nt_transact_set_user_quota(connection_struct *conn, char *inbuf,
}
#endif /* LARGE_SMB_OFF_T */
- sid_parse(pdata+40,sid_len,&sid);
+ if (!sid_parse(pdata+40,sid_len,&sid)) {
+ return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
+ }
DEBUGADD(8,("SID: %s\n",sid_string_static(&sid)));
/* 44 unknown bytes left... */

View File

@@ -0,0 +1,59 @@
From e11637c2c89c2d38963311416c34a4767b19e175 Mon Sep 17 00:00:00 2001
From: Stefan Metzmacher <metze@samba.org>
Date: Sat, 17 Mar 2012 01:22:27 +0100
Subject: [PATCH] s3:librpc/gen_ndr: fix array checks (bug #8815 / CVE-2012-1182)
An Anonymous researcher working with HP's Zero Day Initiative program
has found this and notified us.
metze
---
source/librpc/gen_ndr/ndr_wkssvc.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/source/librpc/gen_ndr/ndr_wkssvc.c b/source/librpc/gen_ndr/ndr_wkssvc.c
index 2af3587..07cf1a1 100644
--- a/source/librpc/gen_ndr/ndr_wkssvc.c
+++ b/source/librpc/gen_ndr/ndr_wkssvc.c
@@ -1385,10 +1385,10 @@ NTSTATUS ndr_pull_USER_INFO_0_CONTAINER(struct ndr_pull *ndr, int ndr_flags, str
NDR_PULL_ALLOC_N(ndr, r->user0, ndr_get_array_size(ndr, &r->user0));
_mem_save_user0_1 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->user0, 0);
- for (cntr_user0_1 = 0; cntr_user0_1 < r->entries_read; cntr_user0_1++) {
+ for (cntr_user0_1 = 0; cntr_user0_1 < ndr_get_array_size(ndr, &r->user0); cntr_user0_1++) {
NDR_CHECK(ndr_pull_USER_INFO_0(ndr, NDR_SCALARS, &r->user0[cntr_user0_1]));
}
- for (cntr_user0_1 = 0; cntr_user0_1 < r->entries_read; cntr_user0_1++) {
+ for (cntr_user0_1 = 0; cntr_user0_1 < ndr_get_array_size(ndr, &r->user0); cntr_user0_1++) {
NDR_CHECK(ndr_pull_USER_INFO_0(ndr, NDR_BUFFERS, &r->user0[cntr_user0_1]));
}
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_user0_1, 0);
@@ -1631,10 +1631,10 @@ NTSTATUS ndr_pull_USER_INFO_1_CONTAINER(struct ndr_pull *ndr, int ndr_flags, str
NDR_PULL_ALLOC_N(ndr, r->user1, ndr_get_array_size(ndr, &r->user1));
_mem_save_user1_1 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->user1, 0);
- for (cntr_user1_1 = 0; cntr_user1_1 < r->entries_read; cntr_user1_1++) {
+ for (cntr_user1_1 = 0; cntr_user1_1 < ndr_get_array_size(ndr, &r->user1); cntr_user1_1++) {
NDR_CHECK(ndr_pull_USER_INFO_1(ndr, NDR_SCALARS, &r->user1[cntr_user1_1]));
}
- for (cntr_user1_1 = 0; cntr_user1_1 < r->entries_read; cntr_user1_1++) {
+ for (cntr_user1_1 = 0; cntr_user1_1 < ndr_get_array_size(ndr, &r->user1); cntr_user1_1++) {
NDR_CHECK(ndr_pull_USER_INFO_1(ndr, NDR_BUFFERS, &r->user1[cntr_user1_1]));
}
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_user1_1, 0);
@@ -1953,10 +1953,10 @@ NTSTATUS ndr_pull_wkssvc_NetWkstaTransportCtr0(struct ndr_pull *ndr, int ndr_fla
NDR_PULL_ALLOC_N(ndr, r->array, ndr_get_array_size(ndr, &r->array));
_mem_save_array_1 = NDR_PULL_GET_MEM_CTX(ndr);
NDR_PULL_SET_MEM_CTX(ndr, r->array, 0);
- for (cntr_array_1 = 0; cntr_array_1 < r->count; cntr_array_1++) {
+ for (cntr_array_1 = 0; cntr_array_1 < ndr_get_array_size(ndr, &r->array); cntr_array_1++) {
NDR_CHECK(ndr_pull_wkssvc_NetWkstaTransportInfo0(ndr, NDR_SCALARS, &r->array[cntr_array_1]));
}
- for (cntr_array_1 = 0; cntr_array_1 < r->count; cntr_array_1++) {
+ for (cntr_array_1 = 0; cntr_array_1 < ndr_get_array_size(ndr, &r->array); cntr_array_1++) {
NDR_CHECK(ndr_pull_wkssvc_NetWkstaTransportInfo0(ndr, NDR_BUFFERS, &r->array[cntr_array_1]));
}
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_array_1, 0);
--
1.7.4.1

View File

@@ -0,0 +1,40 @@
--- a/source/utils/owrt_smbpasswd.c 2017-10-03 15:57:24.190827000 +0100
+++ a/source/utils/owrt_smbpasswd.c 2017-10-03 16:07:54.862857000 +0100
@@ -108,7 +108,7 @@
}
}
- fprintf(fp, line);
+ fprintf(fp, "%s", line);
out:
if(fp)
@@ -134,20 +134,20 @@
p = strchr(t, ':');
if(p && (p - t == strlen(user)) && (strncmp(t, user, strlen(user))) == 0)
{
- fpos_t r_pos, w_pos;
+ long int r_pos, w_pos;
char t2[256];
- fgetpos(fp, &r_pos);
+ r_pos = ftell(fp);
w_pos = r_pos;
- w_pos.__pos -= strlen(t);
+ w_pos -= strlen(t);
while(fgets(t2, 256, fp))
{
- fsetpos(fp, &w_pos);
+ fseek(fp, w_pos, SEEK_SET);
fputs(t2, fp);
- r_pos.__pos += strlen(t2);
- w_pos.__pos += strlen(t2);
- fsetpos(fp, &r_pos);
+ r_pos += strlen(t2);
+ w_pos += strlen(t2);
+ fseek(fp, r_pos, SEEK_SET);
}
- ftruncate(fileno(fp), w_pos.__pos);
+ ftruncate(fileno(fp), w_pos);
break;
}
}

View File

@@ -1,8 +1,5 @@
config testserver '1'
option server 'tptest.bredband.net'
option port '1640'
config testserver '2'
config testserver '1'
option server 'referens.sth.ip-performance.se'
option port '1642'

107
tr064/.cproject Normal file
View File

@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
<cconfiguration id="cdt.managedbuild.config.gnu.cross.exe.debug.1423203916">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.cross.exe.debug.1423203916" moduleId="org.eclipse.cdt.core.settings" name="Debug">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.cross.exe.debug.1423203916" name="Debug" parent="cdt.managedbuild.config.gnu.cross.exe.debug">
<folderInfo id="cdt.managedbuild.config.gnu.cross.exe.debug.1423203916." name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.cross.exe.debug.482080998" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.exe.debug">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.1864775892" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
<builder buildPath="${workspace_loc:/tr064}/Debug" id="cdt.managedbuild.builder.gnu.cross.84968765" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.builder.gnu.cross"/>
<tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.912678595" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler">
<option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.option.optimization.level.732187738" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" valueType="enumerated"/>
<option id="gnu.c.compiler.option.debugging.level.406132207" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.max" valueType="enumerated"/>
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.656190220" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.compiler.894741631" name="Cross G++ Compiler" superClass="cdt.managedbuild.tool.gnu.cross.cpp.compiler">
<option id="gnu.cpp.compiler.option.optimization.level.1987025848" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/>
<option id="gnu.cpp.compiler.option.debugging.level.1506505331" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.1176314661" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker">
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.1134635640" superClass="cdt.managedbuild.tool.gnu.c.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.linker.1076025733" name="Cross G++ Linker" superClass="cdt.managedbuild.tool.gnu.cross.cpp.linker"/>
<tool id="cdt.managedbuild.tool.gnu.cross.archiver.862614592" name="Cross GCC Archiver" superClass="cdt.managedbuild.tool.gnu.cross.archiver"/>
<tool id="cdt.managedbuild.tool.gnu.cross.assembler.638528350" name="Cross GCC Assembler" superClass="cdt.managedbuild.tool.gnu.cross.assembler">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.390953300" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
<cconfiguration id="cdt.managedbuild.config.gnu.cross.exe.release.517635632">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.cross.exe.release.517635632" moduleId="org.eclipse.cdt.core.settings" name="Release">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<configuration artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.cross.exe.release.517635632" name="Release" parent="cdt.managedbuild.config.gnu.cross.exe.release">
<folderInfo id="cdt.managedbuild.config.gnu.cross.exe.release.517635632." name="/" resourcePath="">
<toolChain id="cdt.managedbuild.toolchain.gnu.cross.exe.release.2086871607" name="Cross GCC" superClass="cdt.managedbuild.toolchain.gnu.cross.exe.release">
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.targetPlatform.gnu.cross.1691338213" isAbstract="false" osList="all" superClass="cdt.managedbuild.targetPlatform.gnu.cross"/>
<builder buildPath="${workspace_loc:/tr064}/Release" id="cdt.managedbuild.builder.gnu.cross.2045398730" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.builder.gnu.cross"/>
<tool id="cdt.managedbuild.tool.gnu.cross.c.compiler.804948441" name="Cross GCC Compiler" superClass="cdt.managedbuild.tool.gnu.cross.c.compiler">
<option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.option.optimization.level.422910401" name="Optimization Level" superClass="gnu.c.compiler.option.optimization.level" useByScannerDiscovery="false" valueType="enumerated"/>
<option id="gnu.c.compiler.option.debugging.level.1240870180" name="Debug Level" superClass="gnu.c.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.c.debugging.level.none" valueType="enumerated"/>
<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.118715116" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.compiler.119838407" name="Cross G++ Compiler" superClass="cdt.managedbuild.tool.gnu.cross.cpp.compiler">
<option id="gnu.cpp.compiler.option.optimization.level.198417757" name="Optimization Level" superClass="gnu.cpp.compiler.option.optimization.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/>
<option id="gnu.cpp.compiler.option.debugging.level.380023243" name="Debug Level" superClass="gnu.cpp.compiler.option.debugging.level" useByScannerDiscovery="false" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.751400281" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker">
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.398459196" superClass="cdt.managedbuild.tool.gnu.c.linker.input">
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>
</tool>
<tool id="cdt.managedbuild.tool.gnu.cross.cpp.linker.1354328537" name="Cross G++ Linker" superClass="cdt.managedbuild.tool.gnu.cross.cpp.linker"/>
<tool id="cdt.managedbuild.tool.gnu.cross.archiver.1258554594" name="Cross GCC Archiver" superClass="cdt.managedbuild.tool.gnu.cross.archiver"/>
<tool id="cdt.managedbuild.tool.gnu.cross.assembler.2022763402" name="Cross GCC Assembler" superClass="cdt.managedbuild.tool.gnu.cross.assembler">
<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1223740654" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
</tool>
</toolChain>
</folderInfo>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="tr064.cdt.managedbuild.target.gnu.cross.exe.1457888368" name="Executable" projectType="cdt.managedbuild.target.gnu.cross.exe"/>
</storageModule>
<storageModule moduleId="scannerConfiguration">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.debug.1423203916;cdt.managedbuild.config.gnu.cross.exe.debug.1423203916.;cdt.managedbuild.tool.gnu.cross.c.compiler.912678595;cdt.managedbuild.tool.gnu.c.compiler.input.656190220">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
<scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.cross.exe.release.517635632;cdt.managedbuild.config.gnu.cross.exe.release.517635632.;cdt.managedbuild.tool.gnu.cross.c.compiler.804948441;cdt.managedbuild.tool.gnu.c.compiler.input.118715116">
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
</scannerConfigBuildInfo>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
</cproject>

27
tr064/.project Executable file
View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tr064</name>
<comment></comment>
<projects>
<project>openssl-1.0.2i</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
<triggers>clean,full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.cdt.core.cnature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
</natures>
</projectDescription>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project>
<configuration id="cdt.managedbuild.config.gnu.cross.exe.debug.1423203916" name="Debug">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="1404192411374960532" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
</extension>
</configuration>
<configuration id="cdt.managedbuild.config.gnu.cross.exe.release.517635632" name="Release">
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.internal.build.crossgcc.CrossGCCBuiltinSpecsDetector" console="false" env-hash="1404192411374960532" id="org.eclipse.cdt.build.crossgcc.CrossGCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
</extension>
</configuration>
</project>

82
tr064/Makefile Executable file
View File

@@ -0,0 +1,82 @@
# Copyright (C) 2017 PIVA Software <www.pivasoftware.com>
# Author: OMAR Kallel <omar.kallel@pivasoftware.com>
include $(TOPDIR)/rules.mk
PKG_NAME:=tr064
PKG_VERSION:=1.0
PKG_SOURCE_URL:=git@public.inteno.se:tr064.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=e53d492a09c433718a520987c419cb6a4d4ae8dc
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_CONFIG_DEPENDS:= \
CONFIG_TR064_DEBUG \
CONFIG_TR064_DEVEL
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/tr064
SECTION:=utils
CATEGORY:=Utilities
TITLE:=tr064
DEPENDS:=+libubus +libuci +libubox +libmicroxml +libjson-c +libpthread +libdatamodel +libopenssl +libubus +libubox
endef
define Package/tr064/description
TR-064 protocol
endef
TARGET_CFLAGS += \
-D_GNU_SOURCE
TARGET_LDFLAGS += \
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
CONFIGURE_ARGS += \
--with-uci-include-path=$(STAGING_DIR)/usr/include \
--with-libubox-include-path=$(STAGING_DIR)/usr/include \
--with-libubus-include-path=$(STAGING_DIR)/usr/include
ifeq ($(CONFIG_TR064_DEBUG),y)
CONFIGURE_ARGS += \
--enable-debug
endif
ifeq ($(CONFIG_TR064_DEVEL),y)
CONFIGURE_ARGS += \
--enable-devel
endif
CONFIGURE_ARGS += \
--enable-jsonc=1
define Package/tr064/conffiles
/etc/config/tr064
endef
define Package/tr064/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/upnp-md
$(INSTALL_DIR) $(1)/etc/upnp-md/web
$(INSTALL_DIR) $(1)/etc/upnp-md/x509
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp-md-pupnp/upnp-md $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/web/*.xml $(1)/etc/upnp-md/web
$(CP) $(PKG_BUILD_DIR)/tools/parse_ftp_server_log.sh $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/tools/kill_child.sh $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/x509/*.pem $(1)/etc/upnp-md/x509
$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/upnp-md.conf $(1)/etc/upnp-md
$(CP) $(PKG_BUILD_DIR)/conf/DMconf.xml $(1)/etc/upnp-md
$(CP) $(PKG_BUILD_DIR)/conf/CPID.csv $(1)/etc/upnp-md
$(CP) $(PKG_BUILD_DIR)/conf/tr064 $(1)/etc/config
$(CP) $(PKG_BUILD_DIR)/conf/tr064d $(1)/etc/init.d
chmod 0744 $(1)/etc/init.d/tr064d
endef
$(eval $(call BuildPackage,tr064))

View File

@@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=u-boot
PKG_VERSION:=2016.08
PKG_RELEASE:=2
PKG_RELEASE:=4
PKG_SOURCE_URL:=http://public.inteno.se:/uboot
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=fccb9d5ee720a9f60cba917ded83e5cebe221eef
PKG_SOURCE_VERSION:=f502d1b589f14142bf7d7719e8434014f180d03f
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)

View File

@@ -16,7 +16,7 @@ define Package/voice-client
SECTION:=net
CATEGORY:=Network
TITLE:=voice-client
DEPENDS:=+asterisk13
DEPENDS:=asterisk13||asterisk18-mod
endef
define Package/voice-client/description

View File

@@ -68,6 +68,7 @@ TMPL_ASTERISK=$TEMPLATEDIR/asterisk.conf.TEMPLATE
TMPL_CDR=$TEMPLATEDIR/cdr.conf.TEMPLATE
TMPL_CDR_SYSLOG=$TEMPLATEDIR/cdr_syslog.conf.TEMPLATE
TMPL_INDICATIONS=$TEMPLATEDIR/indications.conf.TEMPLATE
TMPL_CEL=$TEMPLATEDIR/cel.conf.TEMPLATE
TMPL_LOGGER=$TEMPLATEDIR/logger.conf.TEMPLATE
TMPL_MANAGER=$TEMPLATEDIR/manager.conf.TEMPLATE
TMPL_MODULES=$TEMPLATEDIR/modules.conf.TEMPLATE
@@ -80,7 +81,7 @@ TMPL_BRCM_LINE=$TEMPLATEDIR/brcm_line.TEMPLATE
TMPL_MEETME=$TEMPLATEDIR/meetme.conf.TEMPLATE
SPECRATEDIR=$ASTERISKDIR/special_rate_nr.cfg
SPECRATECFG=$ASTERISKDIR/special_rate_nr.cfg
run_hook()
{
@@ -97,13 +98,13 @@ escape_sed_substitution()
# Gets rid of any config files from $ASTERISKDIR not found in $WORKDIR.
clean_up_asterisk_config_dir()
{
for f in $ASTERISKDIR/* ; do
basef="`basename $f`"
if [ ! -e "$WORKDIR/$basef" ] ; then
rm -rf "$f"
for f in $ASTERISKDIR/* ; do
basef="`basename $f`"
if [ ! -e "$WORKDIR/$basef" ] ; then
rm -rf "$f"
echo "$f" >> /tmp/voice.log
fi
done
fi
done
}
# Compares md5sums of the config files in $WORKDIR to those
@@ -113,7 +114,7 @@ compare_configs_and_copy_changed()
{
# First, compute md5sums of the config files in $WORKDIR.
cd $WORKDIR/
md5sum * > $MD5SUMSFILE
md5sum * > $MD5SUMSFILE 2>/dev/null
# Now, check the files in $ASTERISKDIR against the md5sums.
cd $ASTERISKDIR/
@@ -141,15 +142,15 @@ assemble_and_copy_config()
# start if a config item is missing and an included config file isn't created.
# Copy the template files which we don't edit.
cp $TMPL_ASTERISK $WORKDIR/asterisk.conf
cp $TMPL_CDR $WORKDIR/cdr.conf
cp $TMPL_CEL $WORKDIR/cel.conf
cp $TMPL_INDICATIONS $WORKDIR/indications.conf
cp $TMPL_MANAGER $WORKDIR/manager.conf
cp $TMPL_MODULES $WORKDIR/modules.conf
cp $TMPL_EXTENSIONS_MACRO $WORKDIR/extensions_macro.conf
cp $TMPL_MUSICONHOLD $WORKDIR/musiconhold.conf
cp $SPECRATEDIR $WORKDIR/special_rate_nr.cfg
[ -f $TMPL_ASTERISK ] && cp $TMPL_ASTERISK $WORKDIR/asterisk.conf
[ -f $TMPL_CDR ] && cp $TMPL_CDR $WORKDIR/cdr.conf
[ -f $TMPL_CEL ] && cp $TMPL_CEL $WORKDIR/cel.conf
[ -f $TMPL_INDICATIONS ] && cp $TMPL_INDICATIONS $WORKDIR/indications.conf
[ -f $TMPL_MANAGER ] && cp $TMPL_MANAGER $WORKDIR/manager.conf
[ -f $TMPL_MODULES ] && cp $TMPL_MODULES $WORKDIR/modules.conf
[ -f $TMPL_EXTENSIONS_MACRO ] && cp $TMPL_EXTENSIONS_MACRO $WORKDIR/extensions_macro.conf
[ -f $TMPL_MUSICONHOLD ] && cp $TMPL_MUSICONHOLD $WORKDIR/musiconhold.conf
[ -f $SPECRATECFG ] && cp $SPECRATECFG $WORKDIR/special_rate_nr.cfg
test -e $TMPL_MEETME && cp $TMPL_MEETME $WORKDIR/meetme.conf
@@ -178,7 +179,7 @@ assemble_and_copy_config()
mv $WORKDIR/features.tmp $WORKDIR/features.conf
mv $WORKDIR/voicemail.tmp $WORKDIR/voicemail.conf
mv $WORKDIR/meetme.tmp $WORKDIR/meetme.conf
mv $WORKDIR/logger.tmp $WORKDIR/logger.conf
mv $WORKDIR/logger.tmp $WORKDIR/logger.conf
mv $WORKDIR/queues.tmp $WORKDIR/queues.conf
mv $WORKDIR/dnsmgr.tmp $WORKDIR/dnsmgr.conf
@@ -467,13 +468,13 @@ configure_sip()
if [ -z "$registertimeoutbackoff" ] ; then
sed -i "s/registertimeoutbackoff=|REGISTERTIMEOUTBACKOFF|/;registertimeoutbackoff=/g" $WORKDIR/sip.tmp
else
sed -i "s/|REGISTERTIMEOUTBACKOFF|/$registertimeoutbackoff/g" $WORKDIR/sip.tmp
sed -i "s/|REGISTERTIMEOUTBACKOFF|/$registertimeoutbackoff/g" $WORKDIR/sip.tmp
fi
if [ -z "$registerattemptsbackoff" ] ; then
sed -i "s/registerattemptsbackoff=|REGISTERATTEMPTSBACKOFF|/;registerattemptsbackoff=/g" $WORKDIR/sip.tmp
else
sed -i "s/|REGISTERATTEMPTSBACKOFF|/$registerattemptsbackoff/g" $WORKDIR/sip.tmp
sed -i "s/|REGISTERATTEMPTSBACKOFF|/$registerattemptsbackoff/g" $WORKDIR/sip.tmp
fi
if [ -z "$register403timeout" ] ; then
@@ -542,7 +543,7 @@ configure_sip()
for section in ${CONFIG_SECTIONS}; do
local transport
config_get cfgtype "$section" TYPE
[ -n "$type" -a "x$cfgtype" != "x$type" ] && continue
[ -n "$type" -a "x$cfgtype" != "x$type" ] && continue
config_get transport $section transport
if [ "$transport" == "tls" ] ; then
tlsenable="yes"
@@ -804,7 +805,7 @@ configure_sip_provider()
fi
sed -i "s/|AUTOFRAMING|/$autoframing/" $WORKDIR/sip_provider.tmp
# Set registered extension so that incoming calls match the correct peer
# Set registered extension so that incoming calls match the correct peer
sed -i "s/|CONTACT_USER|/$user/g" $WORKDIR/sip_provider.tmp
# Add SIP Provider configuration to the temp file containing all SIP Provider configs.
@@ -1035,7 +1036,7 @@ configure_queue()
echo "[macro-$1]" >> $WORKDIR/macros.tmp
echo "exten => s,1,Answer()" >> $WORKDIR/macros.tmp
# Workaround to fix no ringback issue for incoming SIP calls
# Workaround to fix no ringback issue for incoming SIP calls
echo "exten => s,n,Playback(silence/1)" >> $WORKDIR/macros.tmp
echo "exten => s,n,Queue($1,R)" >> $WORKDIR/macros.tmp
@@ -1127,13 +1128,13 @@ configure_cdr()
echo "cdr_syslog: $cdr_syslog"
if [ -z "$cdr_syslog" ] ; then
if [ -z "$cdr_syslog" ] ; then
cdr_syslog='0'
fi
# Enable/disable CDR logging in syslog
if [ "$cdr_syslog" == "1" ] ; then
cp $TMPL_CDR_SYSLOG $WORKDIR/cdr_syslog.conf
cp $TMPL_CDR_SYSLOG $WORKDIR/cdr_syslog.conf
fi
}
@@ -1188,27 +1189,28 @@ configure_call_filters()
echo "exten => s,n(not-foreign),Set(FOREIGN=0)" >> $WORKDIR/macros.tmp
echo "" >> $WORKDIR/macros.tmp
# Get special rate numbers from /etc/asterisk/special_rate_nr.cfg
while read line
do
i=0
for v in $(echo $line | tr ";" "\n")
if [ -f $SPECRATECFG ]; then
while read line
do
if [ "$i" -eq "0" -a "$v" != "$country" ] ; then
continue 2
fi
if [ "$i" -eq "1" ] ; then
srn=$v
fi
i=$((i+1))
done
i=0
for v in $(echo $line | tr ";" "\n")
do
if [ "$i" -eq "0" -a "$v" != "$country" ] ; then
continue 2
fi
if [ "$i" -eq "1" ] ; then
srn=$v
fi
i=$((i+1))
done
if [ -n "$srn" ] ; then
# Special rate numbers found
break
fi
done < "/etc/asterisk/special_rate_nr.cfg"
if [ -n "$srn" ] ; then
# Special rate numbers found
break
fi
done < $SPECRATECFG
fi
echo "Found special rate numbers: $srn"
@@ -1327,8 +1329,8 @@ get_call_filter()
macro="NoOp()"
if ! [ "x$direction" != "xincoming" -o "x$direction" != "xoutgoing" ] ; then
echo $macro
fi
echo $macro
fi
local call_filter enabled
config_get call_filter $provider call_filter "call_filter0"
@@ -1353,20 +1355,20 @@ configure_opening_hours_profile()
local section cfgtype
[ -z "$CONFIG_SECTIONS" ] && return 0
for section in ${CONFIG_SECTIONS}; do
config_get cfgtype "$section" TYPE
[ -n "timespan" -a "x$cfgtype" != "xtimespan" ] && continue
local owner
config_get cfgtype "$section" TYPE
[ -n "timespan" -a "x$cfgtype" != "xtimespan" ] && continue
local owner
config_get owner $section owner
if [ "$owner" == "$1" ] ; then
local tr dow dom months
config_get tr $section time_range
config_get dow $section days_of_week
config_get dom $section days_of_month
config_get months $section months
config_get owner $section owner
if [ "$owner" == "$1" ] ; then
local tr dow dom months
config_get tr $section time_range
config_get dow $section days_of_week
config_get dom $section days_of_month
config_get months $section months
echo "exten => s,n,GotoIfTime($tr,$dow,$dom,$months,?$label)" >> $WORKDIR/macros.tmp
fi
echo "exten => s,n,GotoIfTime($tr,$dow,$dom,$months,?$label)" >> $WORKDIR/macros.tmp
fi
done
if [ "$invert" == "0" ] ; then
echo "exten => s,n,Goto(closed)" >> $WORKDIR/macros.tmp
@@ -1641,7 +1643,7 @@ configure_extensions_provider()
local call_ivr call_queue extension
echo "exten => $user,n,Set(__TRANSFER_CONTEXT=\${CHANNEL(peername)}-transfer)" >> $tmp
# replace prefix '+' with '00'
# replace prefix '+' with '00'
echo "exten => $user,n,GotoIf($[\"\${CALLERID(NUM):0:1}\" = \"+\"]?rewrite:norewrite)" >> $tmp
echo "exten => $user,n(rewrite),Set(CALLERID(num)=\"00\${CALLERID(num):1}\"))" >> $tmp
echo "exten => $user,n(norewrite),NoOp()">> $tmp
@@ -1704,7 +1706,7 @@ configure_brcm_line_extension()
echo "Configuring local extension $extension"
config_get cbbs_enabled "features" cbbs_enabled
# load cbbs settings if enabled
# load cbbs settings if enabled
cbbs_key=""
cbbs_maxretry="0"
cbbs_retrytime="0"
@@ -1721,7 +1723,7 @@ configure_brcm_line_extension()
sed -i "s/|LINE|/$line/g" $WORKDIR/extensions_local_line.tmp
sed -i "s/|TIMEOUT|/$(get_voicemail_timeout)/g" $WORKDIR/extensions_local_line.tmp
#cbbs settings
#cbbs settings
sed -i "s/|CBBS_KEY|/$(escape_sed_substitution $cbbs_key)/" $WORKDIR/extensions_local_line.tmp
sed -i "s/|MAX_RETRIES|/$cbbs_maxretry/" $WORKDIR/extensions_local_line.tmp
sed -i "s/|RETRYTIME|/$cbbs_retrytime/" $WORKDIR/extensions_local_line.tmp
@@ -1998,8 +2000,8 @@ configure_conference()
echo "exten => $extension,n(enterno),Read(confno,,5)" >> $WORKDIR/extensions_local.tmp
for section in ${CONFIG_SECTIONS}; do
config_get cfgtype "$section" TYPE
[ "x$cfgtype" != "xconference_room" ] && continue
config_get cfgtype "$section" TYPE
[ "x$cfgtype" != "xconference_room" ] && continue
local name id enabled
config_get name $section name
@@ -2011,7 +2013,7 @@ configure_conference()
echo "Enabling conference room $id"
echo "exten => $extension,n,GotoIf($[\"\${confno}\"=\"$id\"]?enterconf)" >> $WORKDIR/extensions_local.tmp
echo "conf => $id" >> $WORKDIR/meetme.tmp
done
done
echo "exten => $extension,n,Playback(conf-invalid)" >> $WORKDIR/extensions_local.tmp
echo "exten => $extension,n,Goto(enterno)" >> $WORKDIR/extensions_local.tmp
@@ -2281,11 +2283,13 @@ reload_service() {
# if there is a registered account
ubus call led.voice1 set '{"state":"off"}'
asterisk -rx "config reload $ASTERISKDIR/sip.conf"
sleep 1
asterisk -rx "core reload"
asterisk -rx "dialplan reload"
asterisk -rx "brcm reload"
}
service_triggers() {
procd_add_reload_trigger voice_client
procd_add_reload_trigger voice_client
}