Commit Graph

158 Commits

Author SHA1 Message Date
Jason 30069e5ade Format code 2018-07-20 20:34:44 -08:00
dman776 da089acb68
bugfix: use new nslookup format (fixes #48) (#74) 2018-07-16 20:54:38 -05:00
Joe AE6XE 287a995089 bugfix: update wscan to nslookup parsing in opewrt 18.06 2018-07-15 16:06:30 -07:00
Eric 5ad1a14022 Added Uptime and Load Averages to the sysinfo.json file. (#61)
* Added Uptime and Load Averages to the sysinfo.json file.

All code copied from Darryl, dman776.

* Updated Api Version number to 1.2.

Updated Api Version Number to 1.2.
2018-07-13 23:44:28 -05:00
dman776 2db67fc168
bugfix: signal charts drop-down list only contains the avg signal for all connected stations (fixes #48) (#58) 2018-07-12 17:32:55 -05:00
Joe AE6XE 8cbc9a1435 hardware: add aredn definition for mikrotik 912uag-5hpnd
Mikrotik RouterBOARD 912UAG-5HPnD or BaseBox 5 definition
2018-06-15 17:50:18 -05:00
Joe AE6XE d66a7e8842 bugfix: sysupgrade no longer supports -d option 2018-05-19 07:12:14 -07:00
dman776 3e4e6270b7
feature: add bootloader version to supporttool output (#8)
* feature: add U-Boot version to supporttool output

* feature: add bootloader version to supporttool output
2018-05-13 23:02:57 -05:00
dman776 7f78757bc2
correct issues in files so build test will pass without issue (#4)
* correct issues in files so build test will pass without issue

* correct issues in files so build test will pass without issue
2018-05-02 19:42:04 -05:00
Andrew Cameron 1fc7a926ab bugfix: fix scripts to current standards
local can only be used in a function
2018-03-29 22:00:19 -07:00
Joe AE6XE b7cacc3d18 package: olsr: AREDN upgrade to 0.9.6.2 2018-03-29 21:03:16 -07:00
Conrad Lara - KG6JEI e5fc675cfc bugfix: OTA Upgrade fails with static WAN.
Wan interface settings are not correctly copied
over after an OTA causing node-setup to fail
when using a static WAN ip.

fixes->AREDN🎫226

Change-Id: I494c05bc0047f1db4c1452cbdbd8e236f4fcd945
2017-04-20 12:41:09 -07:00
Conrad Lara - KG6JEI 835d7e021c bugfix: Upgrades of packages leaves node in upgrade mode.
Due to the removal of odhcpd in
I0897be587cd1f46da758dda3efe65aea32c8a965
uploadctlservices no longer returns successfully.

Remove odhcpd to allow to return correctly.

Change-Id: I8e4bc2ff5846b793e31ce5ffedfba91806df7ed1
2017-04-11 19:26:28 -07:00
Conrad Lara - KG6JEI 2415c56c3e bugfix: sysupgrade needs more tmpfs space.
Increase space on tmpfs just before launching sysupgrade
when the device has had tmpfs limited to 6.5mb

Change-Id: I5b27e6812017c4cbe5d9cb3f53cb04d09892edf4
2017-04-04 23:31:50 -07:00
Conrad Lara - KG6JEI a57d5cd08c bugfix: olsrd-watchdog false reports
olsrd-watchdog can trigger when the olsrd service is restarted
Such as when a tunnel comes up, or when a config change is
made to olsrd.

procd already monitors olsrd and makes sure it remains running.

With procd we no longer need olsrd-watchdog and can remove it.

fixes AREDN->ticket:215

Change-Id: I5067d380a22bd0ab5e597746478ef3e1ba05d72d
2017-03-31 19:34:49 +00:00
Conrad Lara - KG6JEI 8ee8fbefe0 bugfix: Increase available memory during upgrade/install process
It is possible for the system to run out of memory when dealing
with large file uploads and installs.

As part of the upgrade procedure shutdown services that are not
essential for node operations to allow more memory for install
to take place.

Includes changes to linkled to indicate this new state as it will
be shutdown as part of the cleanup process.

Memory gain (approximate)

dropbear 100kb
linkled  200kb
logd     200kb
odhcp    100kb
snmpd    500kb
xinetd   100kb

Total(approximate): 1200kb (around %4 on 32mb devices)

This is somewhat similar to files/usr/local/bin/upgrade_kill_prep
except that it kills only a select group of services
so that the system can handle the file upload while
upgrade_kill_prep does the final system cleanup to run the full
upgrade.

ref AREDN->ticket:204

Change-Id: Ic6d3aa028725064a97c4723f6d9b36e1e51d87a7
2017-03-08 03:23:52 +00:00
Darryl Quinn 956c6b7cd8 bugfix: change charts to be time linear
Change-Id: I06e0c8d1d5d39e9faa46bfec3442bf2e3071c8ff
2017-02-03 16:34:25 +00:00
Conrad Lara - KG6JEI c592f44ab0 Sourcecode license text spelling correction.
Inside the source files the word "contained" was mispelled
as "conained"

The website currently lists this correctly as "contained"

This was an error in the intial stamping of the source files in
changeset:5c3ee1d0686c6e6f2907fe4fc393d86d6c5a69b5/aredn_ar71xx

Line is part of "Additional Conditions" permitted by GPLv3.
Line does not impact coders prior to the AREDN setup date
as it was added by the AREDN team.

Change-Id: I3bc09aea548100f35c08aebe8686b8d4808d56d8
Signed-off-by: Conrad Lara - KG6JEI <KG6JEI@amsat.org>
Signed-off-by: Joe Ayers <ae6xe@arrl.net>
Signed-off-by: Darryl Quinn <k5dlq@arrl.net>
Signed-off-by: Trevor Paskett - K7FPV <snoopytjp@gmail.com>
2016-12-30 18:54:05 +00:00
Darryl Quinn 1e08847db0 change: add chart null on timeout, skip signal 0 in archive.
Change-Id: Ia30bfebb3d5df097e69f1fb9e8cb75e8f317e3ff
2016-12-28 04:54:34 +00:00
Conrad Lara - KG6JEI a39abd3813 bugfix: Typo in comment header for perl scripts
This is at the top of the license header.

It prevents the code from being processed but doesn't
actually impact the license terms in any way.

Change-Id: Ic91f2400f9694056b6f06fa43d1074411d6c6262
2016-12-23 16:45:47 -08:00
Conrad Lara - KG6JEI db2046092f bugfix: Make get_model return model of device instead of board type
Fixes the fact that get_model has done the same as other functions.

This probably always should of been a real model of active device
not just of the hardware type from the begining.

DEV NOTE:
This is in perl, even though we intended to migrate to LUA the
core library that contains this data has yet to be migrated
so we need to add this as a perl program.

Change-Id: Ib8a4ea6dd881c32e6d7660607576aeb5218b1e7a
2016-12-23 19:30:15 +00:00
Darryl Quinn b9c77fa551 change: snrlog to keep logs longer after signal loss
Change-Id: Ifab054fcc2bd1578789dbe61f1ae300cce4c2ccd
2016-12-14 14:18:37 -06:00
Darryl Quinn 37a7b57c0a feature: add mcs/rate info to snrlog for archive
Change-Id: I8caa8a0b8cdef74be646283fa458e89b378e608b
2016-12-12 20:18:27 +00:00
Darryl Quinn ffc76619cc convert signal.json to lua, changed style, add tx/rx rates
Change-Id: Id46fc2cd74a39f1a1ec6922ba93154df33b95654
2016-12-03 20:18:35 +00:00
Darryl Quinn a1da9c0ad7 migrate snrlog to lua
Change-Id: Icecf72e370c5e938d8d689a858d57094fe847e45
2016-12-03 20:18:24 +00:00
Conrad Lara - KG6JEI 811f52f93b bugfix: SSID handling in system tools.
Corrects flaws in how the web user interface displays SSID's
picked up by wifi scanning.

In addition remove the defunct (never supported) connect program
since we never use it (no more client  mode) and it could have
issues with correctly passing SSID's from the shell.

Change-Id: I0444c1b3226b9bc5c3d3044fd5c9849a0d2bf67d
2016-11-22 22:06:57 +00:00
AE6XE b2edc2472b bugfix: Add support to obtain boardid from more Ubiquiti devices
Change-Id: I60ad4d23339c4aaf59b429c49fa705dbbe49ba8e
2016-09-30 20:41:33 -07:00
Conrad Lara - KG6JEI 717b39c2fd hardware: Add support to obtain boardid from more Ubiquiti devices.
Obtain the board ID from the EEPROM on *-m-xw devices.

ref AREDN->ticket:185
ref AREDN->ticket:43

Change-Id: I86247640773a1f6cbd3c4792502d7da4890a46a4
2016-09-24 08:28:31 -07:00
Conrad Lara - KG6JEI 1b65f8a3ad bugfix: UI allows enabling mesh_gw when wan disabled or nat mode
Mesh nodes would need a significant amount of configuration
including some operational checks everytime an interface comes up
to be able to handle this.

The more sane method is to only allow a node to be a mesh_gw when
the WAN port is utilized and the node is in DIRECT mode.

This changes the UI to prevent this setup from being allowed.

fixes AREDN->ticket:184

Change-Id: I1a1289bc914a349149f5842812dbebc0a70442f7
2016-09-20 23:09:03 -07:00
Darryl Quinn 3457b040d8 add initial AREDN lua libraries
Change-Id: Id99b64bf603fdff48c6f527a1493311e9ed3f19e
2016-09-07 02:26:55 +00:00
AE6XE d4b7617e03 remove non-mesh modes from setup options
fixes AREDN->ticket:175

Change-Id: I7517df178a5ce82ef79ec4af844932fe6569d8da
2016-08-07 21:38:18 +00:00
KG6JEI 32a0d6348d Merge "Merge branch 'ChaosCalmer' into develop" into develop 2016-06-20 05:53:31 +00:00
Conrad Lara - KG6JEI 061ede3488 Merge branch 'ChaosCalmer' into develop
Change-Id: I26a8677595a25aae267b7365f1e5835ea68f49b4
2016-06-19 19:26:12 -07:00
Conrad Lara - KG6JEI 8abe628915 Cleanup /usr/local/bin scripts to pass shellcheck
Correct all shellcheck "errors" and "warnings" for
/usr/local/bin/* shell scripts.

This is necesary to have Jenkins start publishing test results.

All code worked on nodes but pushed to strict posix compliance
as part of the cleanup.

SC1001,SC2002,SC2004,SC2006,SC2034,SC2039,SC2086,SC2155
https://github.com/koalaman/shellcheck/wiki for more info

Change-Id: If1f27381eedae79087e490ea12f5939f8cc525a0
2016-06-18 04:52:08 +00:00
KG6JEI ae6688dc33 Merge "security feature: Enhance HTTPD password security" into develop 2016-06-16 05:39:10 +00:00
Conrad Lara - KG6JEI 1ee5cc698b cleanup: Cleanup shellcheck reported concerns in vtun_up
Change-Id: I88c775243a33731a182fd81d411bca664538e536
2016-06-15 08:08:28 -07:00
Conrad Lara - KG6JEI 70e93c09d7 bugfix: Refer to in interface by iif not iff
This may be why we have seen nodes in the past with stray routing table entries.

Change-Id: Ib47cc76eb9f2cd9328252a8a8a6d1bda0a6af35b
2016-06-15 08:07:20 -07:00
Conrad Lara - KG6JEI 8f91ad1e0e security feature: Enhance HTTPD password security
Move httpd.conf to not store password and instead depend on the shadow password file.

Also tag the 40_aredn_migrate-httpdconf script to be +x. Not strictly necessary but wish to have this standard

Change-Id: I018d9a3294e45af2316b3c3947ef2a7d8081268b
2016-06-10 19:37:57 -07:00
Conrad Lara - KG6JEI 1271db794a Merge 3.16.1.0 as released into develop
Merge branch 'release-3.16.1.0' into develop
2016-05-17 09:50:40 -07:00
AE6XE 38a2835471 bugfix: sysupgrade full reboot message not displaying 2016-05-10 19:22:33 -07:00
Darryl Quinn 9800612d86 allow sysupgrade time to settle in order for http to finish delivering the "rebooting" page 2016-04-29 22:29:57 -05:00
Conrad Lara - KG6JEI 86d17e0998 bugfix: RFC Compliance for DHCP and Classless static routes
RFC requires that the DHCP server include the default gateway (0.0.0.0/0) route as part the Classless network list.

Moved to node-setup so it can be set dynamically at setup run time.

fixes AREDN->ticket:155
2016-03-31 22:54:29 -07:00
Trevor Paskett - K7FPV 7d437e2cb8 bug fix: run sysupgrade forked off from uhttpd, kill un-necessary processes and flush page cache during firmware upgrade 2016-03-08 20:29:35 -07:00
Conrad Lara - KG6JEI fad8a43974 cleanup: Resolve "used once" warning. 2016-03-06 23:38:00 -08:00
Conrad Lara - KG6JEI 5fa47d6f93 bugfix: ar71xx: airrouter: Use "Globe" LED to indicate mesh connection 2016-01-17 20:09:11 -08:00
AE6XE 6d619b6757 Merge: bugfix: snrlog fix for out-of-range noise floor values returned by iw 2016-01-16 17:23:28 -08:00
AE6XE f02d4abd33 bugfix: snrlog fix for out-of-range noise floor values returned by iw 2016-01-16 17:21:55 -08:00
AE6XE 31032615a7 merge: bugfix: rssi_monitor increase tolerance on test one notch 2016-01-09 21:02:55 -08:00
AE6XE 97d48c2b84 bugfix: rssi_monitor increase tolerance on test one notch 2016-01-09 21:00:09 -08:00
Conrad Lara - KG6JEI bb10ca7faf Merge branch 'FirewallIncludes' into develop 2016-01-09 19:48:18 -08:00