Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
596 commits
Select commit Hold shift + click to select a range
c199bab
Added modifications to Archer C20 v5 for OpenWRT 19.07.1 version
guissenges Jun 16, 2020
27b4cd0
Adjusted wireless first boot config for Archer C20 v5
guissenges Jun 16, 2020
58923b0
Merge branch 'feature/force_image' into hotfix/0.27.3
ggbruno Jun 17, 2020
e162c00
Remove odhcp6c.user. New odhcpd do not need restart on update.
ggbruno Jun 17, 2020
e348a09
Remove odhcp6c.user. New odhcpd do not need restart on update.
ggbruno Jun 17, 2020
1903177
Convert space to tabs (reduce flash space)
ggbruno Jun 17, 2020
3404f19
Reorganize log in flash image
ggbruno Jun 17, 2020
70da332
Fixed wireless config migration for Archer C20 v5 when using OpenWRT …
guissenges Jun 17, 2020
0dd3e36
Added hwmode 11n for compatibility reasons
guissenges Jun 17, 2020
d0fc40c
Merge branch 'hotfix/0.27.3' of https://github.com/anlix-io/flashman-…
guissenges Jun 17, 2020
8ab0304
Only upgrade if flashman allow in the ack
ggbruno Jun 17, 2020
d285e9c
Convert ident to tab in uci-default (save space in flash)
ggbruno Jun 17, 2020
30adcb6
Add dhcpv6 client on lan to get ipv6 on lan
ggbruno Jun 17, 2020
8f84a9e
Added modifications to Archer C20 v4 and v5 preset for OpenWRT 19.07 …
guissenges Jun 17, 2020
0db551d
Update minisapo to send rrm information for 80211k/v
ggbruno Jun 18, 2020
b239c40
Merge branch 'hotfix/0.27.3'
guissenges Jun 18, 2020
fb9fce9
Merge tag '0.27.3' into development
guissenges Jun 18, 2020
4ce2c08
Update scripts for rrm (80211k/v) update
ggbruno Jun 18, 2020
cd6cd54
Correct number of arguments in flash_image
ggbruno Jun 18, 2020
440de92
Enable Spanning Tree for bridge interface
ggbruno Jun 23, 2020
e886de3
Avoid including empty cache in multicast response
GThurler Jun 23, 2020
3e94163
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
ggbruno Jun 23, 2020
c736648
Control wan_6: Created in pppoe connections
ggbruno Jun 23, 2020
59c01f8
Merge branch 'development' into feature/mesh
ggbruno Jun 24, 2020
6905500
Enable mesh routing in uci-defaults wireless and not in the network t…
ggbruno Jun 24, 2020
3f06cab
Added logic to send mesh info to license generator
guissenges Jun 24, 2020
c8d292e
Fixed wrong use of 'local' type o variable
guissenges Jun 24, 2020
65148ba
Fixed cyclic dependency
guissenges Jun 24, 2020
4bf58b4
Use same variables for is_mesh_slave getter
ggbruno Jun 24, 2020
8ec5552
Simplify getters in mesh
ggbruno Jun 24, 2020
04c931f
Add getters for mesh id
ggbruno Jun 25, 2020
5887539
Auto Channel Selection in MESH when link is offline
ggbruno Jun 25, 2020
f17d710
Add mesh_id and mesh_key from flashman
ggbruno Jun 25, 2020
32abc72
Convert use of index to label in wireless interfaces to avoid conflic…
ggbruno Jun 25, 2020
5893698
Added fix to bridge mode in Archer C5 v4 target
guissenges Jun 25, 2020
82387f9
Always enable wifi interfaces. Control disabled in devices
ggbruno Jun 26, 2020
f511637
Implemented option to configure bridge mode properly on external giga…
guissenges Jun 26, 2020
d3e6946
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
guissenges Jun 26, 2020
9b2eba3
Added missing file for latest commit about bridge mode adjustment
guissenges Jun 26, 2020
fa562e2
Added 840n v4 target to new format
guissenges Jun 26, 2020
2b0b466
Added 840n v5 target to new format
guissenges Jun 26, 2020
11937ce
Correct function to detect mesh is connected
ggbruno Jun 26, 2020
08e729a
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
ggbruno Jun 26, 2020
96ae176
Adjusted bridge mode config for gigabit switches
guissenges Jun 26, 2020
2037d7a
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
guissenges Jun 26, 2020
d45cfc2
Version bump
guissenges Jun 26, 2020
fdbbeb0
Merge branch 'hotfix/0.27.4'
guissenges Jun 26, 2020
2cdd462
Merge tag '0.27.4' into development
guissenges Jun 26, 2020
3431426
fix some mesh variables inicializations
ggbruno Jun 26, 2020
a5ab848
Avoid auto channel in mesh link mode
ggbruno Jun 26, 2020
9245b09
Removed unecessary custom files for 840n v4 and v5 targets
guissenges Jun 27, 2020
3cc4159
Implemented new logic to decide when is necessary to change vlan mapp…
guissenges Jun 27, 2020
d9941d1
Apply new logic about switch reboot to c5 v4 target and rg1200 target
guissenges Jun 27, 2020
7abf7fb
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
guissenges Jun 27, 2020
9606c40
Apply new logic about switch reboot to remaining realtek targets
guissenges Jun 28, 2020
5f991b8
Removed custom target entries for 840n v4 and v5. Not necessary anymore
guissenges Jun 28, 2020
2c1c540
Added remaining gigabit models to use same bridge procedure of Archer C5
guissenges Jun 29, 2020
0e914a0
Added Archer C2 v1 for testing
guissenges Jun 30, 2020
4729b02
Correct device_functions to work with old atheros devices
ggbruno Jun 30, 2020
fb4ed9f
Fixed correct bridge mapping for Archer C2 v1
guissenges Jun 30, 2020
20297a8
Fixed bug in z005 and created compatibility with two different radios…
guissenges Jun 30, 2020
7b2eb43
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
guissenges Jun 30, 2020
bc0c3c2
Modified custom files for target TL-WR849N v5
guissenges Jun 30, 2020
0c13301
Correct case where mesh master is not set in reflesh
ggbruno Jun 30, 2020
f1a7274
Removed unnecessary files to 84X targets now in 19.07 openwrt version
guissenges Jun 30, 2020
8dd69a7
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
guissenges Jun 30, 2020
7b203af
Adapted custom files of target TL-WR2543ND to new 19.07 version
guissenges Jul 1, 2020
3e30bab
Remove wireless tools from obrigatory packages
ggbruno Jul 1, 2020
976757f
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
ggbruno Jul 1, 2020
d5073c1
Updated target TL-WR842ND v3 to new 19.07 format
guissenges Jul 1, 2020
bdd2460
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
guissenges Jul 1, 2020
704d0a9
Fix mesh_mode in flashman_update
ggbruno Jul 1, 2020
8480f80
Adapted the following targets to new 19.07 format: wr841n, wr740n, wr…
guissenges Jul 1, 2020
dc3acd8
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
guissenges Jul 1, 2020
b6744c9
Correct bug that activate 80211r if mesh mode is empty
ggbruno Jul 1, 2020
c076e79
Corrected get_mac and leds for some atheros targets
guissenges Jul 1, 2020
13323f1
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
guissenges Jul 1, 2020
a16a9bf
Fixed logic to use custom function to get mac address
guissenges Jul 1, 2020
04cbd25
Added missing custom file for target WR949N v6
guissenges Jul 1, 2020
98278e9
Removed obsolete custom files for Intelbras Ncloud
guissenges Jul 1, 2020
6402d4d
Updated target DWR-116 A3 to 19.07 custom files
guissenges Jul 1, 2020
26c6037
Fixed wrong function name
guissenges Jul 2, 2020
21b1a9d
Create function to indicate if router can do mesh
ggbruno Jul 3, 2020
9f3e220
Change firmware update order in flashman_update
ggbruno Jul 3, 2020
fd5fc96
Enable STP and DHCP VENDOR ID only for mesh capable routers
ggbruno Jul 3, 2020
a88a054
Create two classes of routers for DHCP ID (mesh compatible and incomp…
ggbruno Jul 3, 2020
1aa99b2
Add status messages for routers
ggbruno Jul 3, 2020
e1a8254
Correct auto channel to work with mesh
ggbruno Jul 3, 2020
c9202ca
Create function in lua to return router status
ggbruno Jul 3, 2020
d66df3c
Adjust SAPO to only reload the parameters
ggbruno Jul 6, 2020
5e4e769
Fixed correct MAC addre mapping for WDR3500 target
guissenges Jul 6, 2020
b8c74d2
Added fields to identify mesh slave on login
GThurler Jul 7, 2020
a1b2fc5
Correct variable type in set_mesh_slaves
ggbruno Jul 7, 2020
832268e
remove redundant function for mesh_id
ggbruno Jul 7, 2020
9948295
NOW remove the redundant function
ggbruno Jul 7, 2020
65a5687
Correct variable name in set_mesh_slaves
ggbruno Jul 7, 2020
5294233
Add json_init when call the status ubus message
ggbruno Jul 7, 2020
c231425
set_mesh_slaves default to status 20
ggbruno Jul 7, 2020
6ea691a
Drop use o service to manage services
ggbruno Jul 7, 2020
e4883b0
Clean up old ralink drivers
ggbruno Jul 7, 2020
23b07f7
Use generic get_wifi_state
ggbruno Jul 7, 2020
098150b
Use generic wifi state functions
ggbruno Jul 7, 2020
9deef7e
Remove custom save from wireless. All routers use the same model now.
ggbruno Jul 7, 2020
b06d1ec
Use get_wifi_state in save_parameters
ggbruno Jul 7, 2020
80ccacf
Reload sapo on mesh mode change to mode 1
ggbruno Jul 8, 2020
ff68410
Use informed mac address in dhcp requests for ANLIX routers to regist…
ggbruno Jul 8, 2020
82b9286
Correct switch ports of ArcherC6
ggbruno Jul 9, 2020
368076e
Implemented check of available mesh licenses and state 22 in case of …
guissenges Jul 9, 2020
e643a7c
remove unecessary tab codes
ggbruno Jul 9, 2020
d5a9488
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
guissenges Jul 9, 2020
c736423
Merge branch 'feature/mesh' of https://github.com/anlix-io/flashman-p…
ggbruno Jul 10, 2020
46cef08
Correct scan for mesh channel
ggbruno Jul 12, 2020
32538b5
Added sapo restart to lua functions so app has access to it
GThurler Jul 12, 2020
fb72813
Avoid sapo restart on lua, retry flashman call instead
GThurler Jul 12, 2020
478c13a
Improved check_cable_wan and wan uptime to work with all connectivity…
guissenges Jul 12, 2020
f4f1302
Optimize check_cable_wan
ggbruno Jul 13, 2020
4d401fc
add missing network_functions dependence in check_cable_wan
ggbruno Jul 13, 2020
7a4ceb4
Added Intelbras Ncloud custom files back until we finish migration to…
guissenges Jul 14, 2020
ea4704c
Merge branch 'feature/mesh' into development
guissenges Jul 14, 2020
d46416d
Version bump
guissenges Jul 14, 2020
166e7c6
Merge branch 'release/0.28.0'
guissenges Jul 14, 2020
b85b8cf
Merge tag '0.28.0' into development
guissenges Jul 14, 2020
33cd1dc
Moved getLoginFunction on lua index to avoid issues when router has n…
GThurler Aug 5, 2020
a88643b
Version bump
GThurler Aug 5, 2020
bd27673
Merge branch 'hotfix/0.28.1'
GThurler Aug 5, 2020
b770396
Upgrade GWR300 and RE172 to the new format
ggbruno Aug 11, 2020
5361c2a
Add Cleanup memory after processor tasks to avoid memory preasure for…
ggbruno Aug 12, 2020
d869c5e
Correct wan information for RTL8192E
ggbruno Aug 12, 2020
1ad4be7
Using psk2+tkip for old wireless driver in 96E
ggbruno Aug 12, 2020
b1b9a17
Avoid multiple instances of mtqq messages onlinedev and status at sam…
ggbruno Aug 12, 2020
5427d38
Correct typo in mqtt.sh
ggbruno Aug 12, 2020
5f1146d
Increase MQTT timeout to avoid disconnections on congested systems
ggbruno Aug 12, 2020
21bfc69
8196E targets: Added back function to reboot router when bridge changes.
guissenges Aug 13, 2020
fe1a36e
Fixed lack of leds blinking before first access ever established
guissenges Aug 13, 2020
0bb12be
Assigned baseline wireless noise when iwinfo informs "unknown"
guissenges Aug 13, 2020
bc5643a
Convert 97F targets to new format
ggbruno Aug 20, 2020
6485242
Merge branch 'development' of github.com:anlix-io/flashman-plugin-ope…
ggbruno Aug 20, 2020
1134369
Added custom txpower function and applied to GWR300 target
guissenges Aug 20, 2020
e7b51c3
Implemented basic logic and default activation for wps push button co…
guissenges Aug 20, 2020
2532bed
Fix typo on intelbras script
ggbruno Aug 20, 2020
cff9bdd
Added custom mac function to TBS targets to deal with different situa…
guissenges Aug 21, 2020
2555d1d
Merge branch 'master' into development
guissenges Aug 21, 2020
845ecb0
Merge branch 'development' into feature/wps
guissenges Aug 21, 2020
994588a
Fixed lack of custom leds color mapping function on Intelbras Action …
guissenges Aug 22, 2020
14a44c7
Added default noise baseline in wireless stats
guissenges Aug 22, 2020
71835f9
Change mac address for realtek wifi driver and wifi enc for 96E targets
ggbruno Aug 22, 2020
1ba6272
Version bump
guissenges Aug 24, 2020
2b7f343
Merge branch 'release/0.29.0'
guissenges Aug 24, 2020
77b0bd6
Merge tag '0.29.0' into development
guissenges Aug 24, 2020
f689725
Fixed typo. Added option to interrupt WPS PBC
guissenges Aug 25, 2020
df7c6c4
Correct dhcp start in master mesh when it is in bridge
ggbruno Aug 25, 2020
13f6571
Added test script to monitor hostapd events
guissenges Aug 26, 2020
f468ea1
Get only channels that do not use DFS at first boot to avoid racing w…
ggbruno Aug 27, 2020
9994e2c
Minor updates in port_forward and upnp
ggbruno Aug 27, 2020
ccd9e9f
Merge branch 'development' into feature/wps
guissenges Aug 28, 2020
14f4f3f
Lock flashman_update to avoid racing (only one instance can run)
ggbruno Aug 28, 2020
88c7187
Testing hostapd_cli trigger by hotplug action
guissenges Aug 31, 2020
f79ccb3
Moved hostapd triggers to net hotplug and added logic to inform WPS s…
guissenges Aug 31, 2020
b0f67a3
Using service to run hostapd_cli daemon since wireless may take some …
guissenges Sep 1, 2020
03a5b5f
Forgot to set execution mode
guissenges Sep 1, 2020
608c9af
Fixed service start command for hostapd_cli
guissenges Sep 1, 2020
d1632ae
Moved WPS logic to send status to Flashman to a unique function
guissenges Sep 3, 2020
651235a
Removed useless WPS state
guissenges Sep 3, 2020
dfba99d
Splitting WPS json files and storing for further use
guissenges Sep 3, 2020
fa3ddc2
Added WPS state to flashman update as a failsafe status update
guissenges Sep 3, 2020
a4470d9
Using integer to indicate wps state
guissenges Sep 3, 2020
a064334
Fixed WPS state
guissenges Sep 4, 2020
7db8b84
Version bump
guissenges Sep 6, 2020
70d4622
Merge branch 'release/0.29.1'
guissenges Sep 6, 2020
38e3203
Merge tag '0.29.1' into development
guissenges Sep 6, 2020
2ce0d85
Merge branch 'feature/wps' into development
guissenges Sep 6, 2020
5b9c595
Add Support for Intelbras GF1200
ggbruno Sep 11, 2020
3bbb339
Merge branch 'development' of github.com:anlix-io/flashman-plugin-ope…
ggbruno Sep 11, 2020
cc98cd4
Removed MAC entries that belong to the router itself when listing dev…
guissenges Sep 14, 2020
26d5529
Wait for wifi to start minisapo (get rrm information correct)
ggbruno Sep 15, 2020
fdbfef2
Add ping, tx and rx bytes and connection time in get_online_devices
ggbruno Sep 15, 2020
0991928
Add get online information from mesh routers
ggbruno Sep 15, 2020
f52d26a
Add interface in get_online_mesh_routers
ggbruno Sep 16, 2020
b8b40be
Add mesh mac address in sapo message
ggbruno Sep 16, 2020
a044377
Remove ciclic dependence of dhcp functions
ggbruno Sep 16, 2020
8d85405
Fixed typo
guissenges Sep 16, 2020
fa5956c
Correct loop in get_online_mesh_routers
ggbruno Sep 16, 2020
09ad455
Remove mesh routers from get_online_devices
ggbruno Sep 17, 2020
edbd044
Added tolower and sorting function to remove duplicates
guissenges Sep 17, 2020
93f3747
Add bridge mac address in sapo
ggbruno Sep 17, 2020
a327165
Added custom leds blink for archerc20 v1
guissenges Sep 17, 2020
00935bf
Merge branch 'hotfix/0.29.2' of https://github.com/anlix-io/flashman-…
guissenges Sep 17, 2020
767358f
Version bump
guissenges Sep 17, 2020
fd33192
Merge branch 'hotfix/0.29.2'
guissenges Sep 17, 2020
f7326d6
Merge tag '0.29.2' into development
guissenges Sep 17, 2020
8dee880
Merge branch 'development' of https://github.com/anlix-io/flashman-pl…
guissenges Sep 17, 2020
02edaa5
Correct warning in mesh interfaces for minisapo service initialization
ggbruno Sep 21, 2020
caeb93b
Increase Txpower
ggbruno Sep 21, 2020
2ed43f3
Merge branch 'hotfix/0.29.3' into development
ggbruno Sep 21, 2020
fcf051a
Version bump
guissenges Sep 22, 2020
90f6973
Merge branch 'hotfix/0.29.3'
guissenges Sep 22, 2020
dc4874b
Merge tag '0.29.3' into development
guissenges Sep 22, 2020
3683b27
Merge branch 'development' of github.com:anlix-io/flashman-plugin-ope…
ggbruno Sep 23, 2020
f9a32af
Adjust mac addres of realteks
ggbruno Sep 24, 2020
24505f7
creating variable for update of txpower
danielatk Aug 15, 2020
bb28d6c
applying final changes for update and initialization of txpower
danielatk Aug 17, 2020
7c41aa6
correcting mistakes for txpower and adding 'hidden' config option
danielatk Sep 9, 2020
f5c3509
correcting txpower and hidden configs
Sep 23, 2020
9a4b7ea
Update wireless paramenters: hidden and txpower
ggbruno Sep 29, 2020
6b65ac9
Add version in log
ggbruno Sep 29, 2020
00e0636
Corrected typo
guissenges Sep 30, 2020
2504c33
Allow enable and disable ipv6 with flashman
ggbruno Oct 1, 2020
7c8df66
Merge branch 'development' of github.com:anlix-io/flashman-plugin-ope…
ggbruno Oct 1, 2020
f4e6332
Fix Realtek get_lan_negociated_speed
ggbruno Oct 1, 2020
ef93d46
Added missing new line
guissenges Oct 1, 2020
a8bfb0e
Merge branch 'development' of github.com:anlix-io/flashman-plugin-ope…
ggbruno Oct 1, 2020
899de89
Get wan device using ubus
ggbruno Oct 1, 2020
a99f8d9
Added conditions to verify existence of hostapd_cli
guissenges Oct 1, 2020
5e1d4ca
Correct offset of mac address for GWR1200 v2
ggbruno Oct 1, 2020
047e2d6
Merge branch 'development' of github.com:anlix-io/flashman-plugin-ope…
ggbruno Oct 1, 2020
5cdcd0a
Version bump
guissenges Oct 2, 2020
5c7155b
Merge branch 'release/0.30.0'
guissenges Oct 2, 2020
df081c3
Merge tag '0.30.0' into development
guissenges Oct 2, 2020
3597749
Version bump
guissenges Oct 5, 2020
1c2441b
Added condition to add wps_pushbutton config on wireless configuration
guissenges Oct 5, 2020
ac13663
Merge branch 'hotfix/0.30.1'
guissenges Oct 5, 2020
a4de08e
Merge tag '0.30.1' into development
guissenges Oct 5, 2020
1273c54
Correct txpower for 2.4Ghz
ggbruno Oct 6, 2020
53a1466
Version Bump
ggbruno Oct 6, 2020
dbfe0d4
Merge branch 'hotfix/0.30.2' into development
ggbruno Oct 6, 2020
bf25211
Add Wifi calibration files
ggbruno Oct 15, 2020
91fa7c2
Add Wifi Calibration for archer C20 routers
ggbruno Oct 15, 2020
48f6e34
Update calibration files for mt7628
ggbruno Oct 15, 2020
7961ea3
Correct get_wifi_local_config for routers that only have 2.4Ghz radio
ggbruno Oct 19, 2020
df9c02c
Correct setting date from flashman
ggbruno Oct 19, 2020
2c4f78f
Correct leds for C20v5
ggbruno Oct 19, 2020
c48dabc
Add more clean ups in memory when upgrading, for 32M routers
ggbruno Oct 19, 2020
3011cb1
Update enable and disable ipv6 to work with bugged ipv6 implementations
ggbruno Oct 19, 2020
bd3e428
Change upgrade on low memory to work with custom scripts
ggbruno Oct 20, 2020
133ba21
Replicate custom upgrade to all 94X routers
ggbruno Oct 20, 2020
ee3fe61
Use custom tx power on routers that cant get max txpower in the system
ggbruno Oct 21, 2020
f56cb5a
Add support for Intelbras W5 1200F
ggbruno Oct 23, 2020
bfaaf3c
Added target TP-Link Archer C60 v3 (almost equal compared to v2).
guissenges Oct 28, 2020
fd2bbe0
Update automatic channel to include custom range
ggbruno Nov 3, 2020
e0d79c9
Merge branch 'master' into development
ggbruno Nov 5, 2020
955ed39
Correct MAC address for GWR1200 v1
ggbruno Nov 10, 2020
705663f
Merge branch 'master' into development
ggbruno Nov 11, 2020
f49a4cb
Make SAPO restart if enabling mesh
ggbruno Nov 12, 2020
c6ff3a9
Correct mesh autochannel and rrm update
ggbruno Nov 12, 2020
4bb3990
Enable fast transition on first boot
ggbruno Nov 13, 2020
6c774e9
Correct wifi_config call to recognize new parameters
ggbruno Nov 13, 2020
877b707
Correct name and manufacturer for WPS
ggbruno Nov 13, 2020
53bf07b
Added Archer C7 custom file
guissenges Nov 13, 2020
9bab69a
Merge branch 'master' into development
ggbruno Nov 13, 2020
126a4ed
Merge branch 'development' into ddos_detector
gabrielgmendonca Nov 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ config FLASHMAN_PUBKEY_FNAME
string "Public key file name. This key will be used for remote SSH access."
default "id_rsa.pub"

config PROVIDER_PUBKEY_FNAME
string "Provider Public key file name. This key will be used to authorize lua access."
default "provider.pubkey"

config FLASHMAN_SERVER_ADDR
string "Flashman server IP or FQDN"
default ""
Expand Down Expand Up @@ -60,6 +64,9 @@ config FLASHMAN_CLIENT_ORG
string "FlashMan image client organization identification"
default "MyCompany"

config ZABBIX_SUPPORT
bool "Install custom zabbix agent"

config NTP_SERVER_ADDR
string "First NTP server IP or FQDN"
default "a.st1.ntp.br"
Expand Down Expand Up @@ -87,19 +94,17 @@ choice
bool "PPPoE"
endchoice

if FLASHMAN_WAN_PROTO_PPPOE
config FLASHMAN_PPPOE_USER
string "PPPoE username. Remember to escape hashtags and dollar signs with a slash."
default "flashman-user"
config FLASHMAN_PPPOE_USER
string "PPPoE username. Remember to escape hashtags and dollar signs with a slash."
default "flashman-user"

config FLASHMAN_PPPOE_PASSWD
string "PPPoE password. Remember to escape hashtags and dollar signs with a slash."
default "Flashman!"
config FLASHMAN_PPPOE_PASSWD
string "PPPoE password. Remember to escape hashtags and dollar signs with a slash."
default "Flashman!"

config FLASHMAN_PPPOE_SERVICE
string "PPPoE service. Remember to escape hashtags and dollar signs with a slash."
default "auto"
endif
config FLASHMAN_PPPOE_SERVICE
string "PPPoE service. Remember to escape hashtags and dollar signs with a slash."
default "auto"

config FLASHMAN_WAN_MTU
string "WAN MTU"
Expand All @@ -121,6 +126,10 @@ config FLASHMAN_LAN_IPV6_PREFIX
string "LAN ÏPV6 Prefix for Prefix Delegation"
default "64"

config FLASHMAN_DHCP_NOPROXY
string "Do not use router as a DNS proxy"
default "0"

config MQTT_PORT
string "MQTT port"
default "1883"
Expand Down
165 changes: 106 additions & 59 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=flasman-plugin
PKG_VERSION:=0.16.0
PKG_VERSION:=0.30.2
PKG_RELEASE:=1

PKG_LICENSE:=GPL
Expand Down Expand Up @@ -47,18 +47,19 @@ define Package/flashman-plugin
DEPENDS:=+curl \
+iputils-ping \
+iputils-ping6 \
+wireless-tools \
+uhttpd \
+uhttpd-mod-lua \
+px5g-mbedtls \
+libustream-mbedtls \
+libuuid \
+libcares \
+rpcd \
+libuci-lua \
+libubus-lua \
+libmbedtls \
+iptables-mod-conntrack-extra
+iptables-mod-conntrack-extra \
+anlix-miniupnpd \
+anlix-minisapo \
+flash-measure
MENU:=1
endef

Expand All @@ -79,61 +80,94 @@ FILE_DIR=
endif

CUSTOM_FILE_DIR=
ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_archer-c20-v4), y)
CUSTOM_FILE_DIR="custom-files/archer-c20-v4"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_ArcherC5v4), y)
CUSTOM_FILE_DIR="custom-files/archer-c5-v4"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_dl-dwr116-a3), y)
CUSTOM_FILE_DIR="custom-files/dl-dwr116-a3"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_itlb-ncloud-v1), y)
CUSTOM_FILE_DIR="custom-files/itlb-ncloud-v1"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_dir-819-a1), y)
CUSTOM_FILE_DIR="custom-files/dir-819-a1"
else ifeq ($(CONFIG_TARGET_ar71xx_tiny_DEVICE_tl-wr741nd-v4), y)
CUSTOM_FILE_DIR="custom-files/tl-wr741nd-v4"
else ifeq ($(CONFIG_TARGET_ar71xx_tiny_DEVICE_tl-wr841-v7), y)
CUSTOM_FILE_DIR="custom-files/tl-wr841-v7"
else ifeq ($(CONFIG_TARGET_ar71xx_tiny_DEVICE_tl-wr841-v8), y)
CUSTOM_FILE_DIR="custom-files/tl-wr841-v8"
else ifeq ($(CONFIG_TARGET_ar71xx_generic_DEVICE_tl-wr842n-v3), y)
CUSTOM_FILE_DIR="custom-files/tl-wr842n-v3"
else ifeq ($(CONFIG_TARGET_ar71xx_generic_DEVICE_tl-wdr3500-v1), y)
CUSTOM_FILE_DIR="custom-files/tl-wdr3500-v1"
else ifeq ($(CONFIG_TARGET_ar71xx_generic_DEVICE_tl-wdr3600-v1), y)
CUSTOM_FILE_DIR="custom-files/tl-wdr3600-v1"
else ifeq ($(CONFIG_TARGET_ar71xx_generic_DEVICE_tl-wdr4300-v1), y)
CUSTOM_FILE_DIR="custom-files/tl-wdr4300-v1"
else ifeq ($(CONFIG_TARGET_ar71xx_generic_DEVICE_tl-wr2543-v1), y)
CUSTOM_FILE_DIR="custom-files/tl-wr2543-v1"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr840n-v4), y)
CUSTOM_FILE_DIR="custom-files/tl-wr840n-v4"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr840n-v5preset), y)
CUSTOM_FILE_DIR="custom-files/tl-wr840n-v5preset"
CUSTOM_FILE_ARQ=
ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_tplink_c2-v1), y)
CUSTOM_FILE_ARQ="tplink_archer-c2-v1"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_tplink_c20-v1), y)
CUSTOM_FILE_ARQ="tplink_archer-c20-v1"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tplink_c20-v4), y)
CUSTOM_FILE_ARQ="tplink_archer-c20-v4"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tplink_c20-v5), y)
CUSTOM_FILE_ARQ="tplink_archer-c20-v5"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tplink_c20-v5w), y)
CUSTOM_FILE_ARQ="tplink_archer-c20-v5W"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_tplink_c5-v4), y)
CUSTOM_FILE_ARQ="tplink_archer-c5-v4"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tplink_c50-v3), y)
CUSTOM_FILE_ARQ="tplink_archer-c50-v3"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tplink_c50-v4), y)
CUSTOM_FILE_ARQ="tplink_archer-c50-v4"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_zyxel_emg1702-t10a-a1), y)
CUSTOM_FILE_ARQ="tbs"
else ifeq ($(CONFIG_TARGET_ath79_generic_DEVICE_tplink_archer-c60-v2), y)
CUSTOM_FILE_ARQ="tplink_archer-c60-v2"
else ifeq ($(CONFIG_TARGET_ath79_generic_DEVICE_tplink_archer-c60-v3), y)
CUSTOM_FILE_ARQ="tplink_archer-c60-v3"
else ifeq ($(CONFIG_TARGET_ath79_generic_DEVICE_tplink_archer-c6-v2-us), y)
CUSTOM_FILE_ARQ="tplink_archer-c6-v2US"
else ifeq ($(CONFIG_TARGET_ath79_generic_DEVICE_tplink_archer-c7-v5), y)
CUSTOM_FILE_ARQ="tplink_archer-c7-v5"
else ifeq ($(CONFIG_TARGET_ath79_generic_DEVICE_dlink_covr-c1200-a1), y)
CUSTOM_FILE_ARQ="dlink_covr-c1200-a1"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_dlink_dir-819-a1), y)
CUSTOM_FILE_ARQ="tbs"
else ifeq ($(CONFIG_TARGET_ath79_tiny_DEVICE_tplink_tl-wr740n-v4), y)
CUSTOM_FILE_ARQ="tplink_tl-wr740n"
else ifeq ($(CONFIG_TARGET_ath79_tiny_DEVICE_tplink_tl-wr740n-v5), y)
CUSTOM_FILE_ARQ="tplink_tl-wr740n"
else ifeq ($(CONFIG_TARGET_ar71xx_tiny_DEVICE_tl-wr740n-v6), y)
CUSTOM_FILE_ARQ="tplink_tl-wr740n"
else ifeq ($(CONFIG_TARGET_ath79_tiny_DEVICE_tplink_tl-wr741nd-v4), y)
CUSTOM_FILE_ARQ="tplink_tl-wr741n"
else ifeq ($(CONFIG_TARGET_ath79_tiny_DEVICE_tplink_tl-wr841-v7), y)
CUSTOM_FILE_ARQ="tplink_tl-wr841n"
else ifeq ($(CONFIG_TARGET_ath79_tiny_DEVICE_tplink_tl-wr841-v8), y)
CUSTOM_FILE_ARQ="tplink_tl-wr841n"
else ifeq ($(CONFIG_TARGET_ath79_generic_DEVICE_tplink_tl-wr842n-v3), y)
CUSTOM_FILE_ARQ="tplink_tl-wr842n"
else ifeq ($(CONFIG_TARGET_ath79_generic_DEVICE_tplink_tl-wr2543-v1), y)
CUSTOM_FILE_ARQ="tplink_tl-wr2543nd"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr840n-v5), y)
CUSTOM_FILE_DIR="custom-files/tl-wr840n-v5"
CUSTOM_FILE_ARQ="tplink_tl-wr84Xn-v5-v6"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr840n-v6), y)
CUSTOM_FILE_DIR="custom-files/tl-wr840n-v6"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr840n-v6preset), y)
CUSTOM_FILE_DIR="custom-files/tl-wr840n-v6preset"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr845n-v3), y)
CUSTOM_FILE_DIR="custom-files/tl-wr845n-v3"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr845n-v4), y)
CUSTOM_FILE_DIR="custom-files/tl-wr845n-v4"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr849n-v4), y)
CUSTOM_FILE_DIR="custom-files/tl-wr849n-v4"
CUSTOM_FILE_ARQ="tplink_tl-wr84Xn-v5-v6"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr849n-v5), y)
CUSTOM_FILE_DIR="custom-files/tl-wr849n-v5"
CUSTOM_FILE_ARQ="tplink_tl-wr84Xn-v5-v6"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr849n-v6), y)
CUSTOM_FILE_DIR="custom-files/tl-wr849n-v6"
else ifeq ($(CONFIG_TARGET_ramips_mt76x8_DEVICE_tl-wr849n-v62), y)
CUSTOM_FILE_DIR="custom-files/tl-wr849n-v62"
else ifeq ($(CONFIG_TARGET_ar71xx_tiny_DEVICE_tl-wr940n-v6), y)
CUSTOM_FILE_DIR="custom-files/tl-wr940n-v6"
else ifeq ($(CONFIG_TARGET_ar71xx_tiny_DEVICE_tl-wr949n-v6), y)
CUSTOM_FILE_DIR="custom-files/tl-wr949n-v6"
else
CUSTOM_FILE_DIR="custom-files/default"
endif
CUSTOM_FILE_ARQ="tplink_tl-wr84Xn-v5-v6"
else ifeq ($(CONFIG_TARGET_ath79_tiny_DEVICE_tplink_tl-wr940n-v5), y)
CUSTOM_FILE_ARQ="tplink_tl-wr940n-v5"
else ifeq ($(CONFIG_TARGET_ath79_tiny_DEVICE_tplink_tl-wr940n-v6), y)
CUSTOM_FILE_ARQ="tplink_tl-wr94Xn-v6"
else ifeq ($(CONFIG_TARGET_ath79_tiny_DEVICE_tplink_tl-wr949n-v6), y)
CUSTOM_FILE_ARQ="tplink_tl-wr94Xn-v6"
else ifeq ($(CONFIG_TARGET_ath79_generic_DEVICE_tplink_tl-wdr3500-v1), y)
CUSTOM_FILE_ARQ="tplink_tl-wdr3500"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_dlink_dwr-116-a1), y)
CUSTOM_FILE_ARQ="dlink_dl-dwr116-a3"
else ifeq ($(CONFIG_TARGET_ramips_mt7620_DEVICE_itlb-ncloud-v1), y)
CUSTOM_FILE_DIR="custom-files/itlb-ncloud-v1"
else ifeq ($(CONFIG_TARGET_realtek_rtl8197d_DEVICE_DIR815D1), y)
CUSTOM_FILE_DIR="custom-files/dir-815-d1"
else ifeq ($(CONFIG_TARGET_realtek_rtl8196e_DEVICE_GWR300N), y)
CUSTOM_FILE_ARQ="greatek_gwr300-v1"
else ifeq ($(CONFIG_TARGET_realtek_rtl8197f_DEVICE_GWR1200AC-V1), y)
CUSTOM_FILE_ARQ="greatek_gwr1200-v1"
else ifeq ($(CONFIG_TARGET_realtek_rtl8197f_DEVICE_GWR1200AC-V2), y)
CUSTOM_FILE_ARQ="greatek_gwr1200-v2"
else ifeq ($(CONFIG_TARGET_realtek_rtl8196e_DEVICE_RE172), y)
CUSTOM_FILE_ARQ="multilaser_re172-v1"
else ifeq ($(CONFIG_TARGET_realtek_rtl8197f_DEVICE_RE708), y)
CUSTOM_FILE_ARQ="multilaser_re708-v1"
else ifeq ($(CONFIG_TARGET_realtek_rtl8197f_DEVICE_ACTIONRF1200), y)
CUSTOM_FILE_ARQ="intelbras_rf1200-v1"
else ifeq ($(CONFIG_TARGET_realtek_rtl8197f_DEVICE_ACTIONRG1200), y)
CUSTOM_FILE_ARQ="intelbras_rg1200-v1"
else ifeq ($(CONFIG_TARGET_realtek_rtl8197f_DEVICE_GF1200), y)
CUSTOM_FILE_ARQ="intelbras_gf1200-v1"
else ifeq ($(CONFIG_TARGET_realtek_rtl8197f_DEVICE_W51200F), y)
CUSTOM_FILE_ARQ="intelbras_w51200f-v1"
endif

WAN_PROTO=
ifeq ($(CONFIG_FLASHMAN_WAN_PROTO_DHCP), y)
Expand All @@ -155,10 +189,20 @@ SSID_SUFFIX=

define Package/flashman-plugin/install
$(CP) ./$(FILE_DIR)/* $(1)/
ifneq ($(CUSTOM_FILE_DIR),)
$(CP) ./$(CUSTOM_FILE_DIR)/* $(1)/

endif
ifneq ($(CUSTOM_FILE_ARQ),)
$(CP) ./custom-files/$(CUSTOM_FILE_ARQ).sh $(1)/usr/share/functions/custom_device.sh
if [ -d ./calibration/$(CUSTOM_FILE_ARQ) ]; then \
mkdir -p $(1)/lib/firmware ; \
$(CP) ./calibration/$(CUSTOM_FILE_ARQ)/* $(1)/lib/firmware/ ; \
fi
endif

$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/anlix-mqtt $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/pk $(1)/usr/bin/

mkdir -p $(1)/usr/share
echo 'FLM_SSID_SUFFIX=$(SSID_SUFFIX)' >>$(1)/usr/share/flashman_init.conf
Expand All @@ -179,14 +223,12 @@ define Package/flashman-plugin/install
echo 'FLM_LAN_SUBNET=$(CONFIG_FLASHMAN_LAN_SUBNET)' >>$(1)/usr/share/flashman_init.conf
echo 'FLM_LAN_NETMASK=$(CONFIG_FLASHMAN_LAN_NETMASK)' >>$(1)/usr/share/flashman_init.conf
echo 'FLM_LAN_IPV6_PREFIX=$(CONFIG_FLASHMAN_LAN_IPV6_PREFIX)' >>$(1)/usr/share/flashman_init.conf
echo 'FLM_DHCP_NOPROXY=$(CONFIG_FLASHMAN_DHCP_NOPROXY)' >>$(1)/usr/share/flashman_init.conf
echo 'MQTT_PORT=$(CONFIG_MQTT_PORT)' >>$(1)/usr/share/flashman_init.conf
echo 'FLM_CLIENT_ORG=$(CONFIG_FLASHMAN_CLIENT_ORG)' >>$(1)/usr/share/flashman_init.conf

ifeq ($(WAN_PROTO), "pppoe")
echo 'FLM_WAN_PPPOE_USER=$(CONFIG_FLASHMAN_PPPOE_USER)' >>$(1)/usr/share/flashman_init.conf
echo 'FLM_WAN_PPPOE_PASSWD=$(CONFIG_FLASHMAN_PPPOE_PASSWD)' >>$(1)/usr/share/flashman_init.conf
echo 'FLM_WAN_PPPOE_SERVICE=$(CONFIG_FLASHMAN_PPPOE_SERVICE)' >>$(1)/usr/share/flashman_init.conf
endif

echo 'FLM_USE_AUTH_SVADDR=$(CONFIG_FLASHMAN_USE_AUTH_SERVER)' >>$(1)/usr/share/flashman_init.conf

Expand All @@ -195,12 +237,17 @@ ifeq ($(CONFIG_FLASHMAN_USE_AUTH_SERVER), y)
echo 'FLM_CLIENT_SECRET=$(CONFIG_FLASHMAN_CLIENT_SECRET)' >>$(1)/usr/share/flashman_init.conf
endif

echo 'ZBX_SUPPORT=$(CONFIG_ZABBIX_SUPPORT)' >>$(1)/usr/share/flashman_init.conf

echo $(PKG_VERSION) > $(1)/etc/anlix_version

mkdir -p $(1)/etc/dropbear
cat $(CONFIG_FLASHMAN_KEYS_PATH)/$(CONFIG_FLASHMAN_PUBKEY_FNAME) >>$(1)/etc/dropbear/authorized_keys
chmod 0600 $(1)/etc/dropbear/authorized_keys

cat $(CONFIG_FLASHMAN_KEYS_PATH)/$(CONFIG_PROVIDER_PUBKEY_FNAME) >>$(1)/etc/provider.pubkey
chmod 0600 $(1)/etc/provider.pubkey

endef

$(eval $(call BuildPackage,flashman-plugin))
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Loading