The current script was using the wrong upgrade file and incorrectly deleted
$TMPDIR after it was done.
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
This feature makes use of the crashlog driver in the kernel. If we experience
an oops, the kernel will store the stack trace inside /sys/kernel/debug/crashlog.
OpenSync will then add an entry to the Alarms table. The could can then retrieve
the crashlog via the Command_config table.
A crash can be simulated with
echo c > /proc/sysrq-trigger
Signed-off-by: John Crispin <john@phrozen.org>
Once the AP connected to the cloud for the first time we wait 5 minutes.
Once that period is over we stop and disable the webserver. It is only
intended for initial WAN bringup during deployment.
Signed-off-by: John Crispin <john@phrozen.org>
- Added support to upgrade firmware from a URL to a FW tar/tar.gz package
- Checksum validation using sha256sum
- Some error handling
- Added support to share the firmware tar name to the gateway
Signed-off-by: Yashvardhan <yashvardhan@netexperience.com>
This allows us to trigger remote commands, such as tcpdump.
Also allow configuring NTP and remote syslog.
Signed-off-by: John Crispin <john@phrozen.org>
When adding a new baord we had to edit files all over the tree. After this patch
they are all located in the same folder.
Signed-off-by: John Crispin <john@phrozen.org>
The current code was reporting invalid state back to the cloud incase
rate-limit was not actually enabled.
Signed-off-by: John Crispin <john@phrozen.org>
This adds 2 new tables
* CommandConfig
* CommandState
This allows us to remotely trigger, tcpdump, remote syslog, ...
Signed-off-by: John Crispin <john@phrozen.org>
The @ syntax reference the L3 device. This means a child interface will not
be brought up if the underlying parent is still pending.
This can be seen if we have br-wan and br-wan.100. Both have proto dhcp.
The vlan interface wont come up until the wan interface has an IP.
Signed-off-by: John Crispin <john@phrozen.org>
We can now trigger remote reboot and factory reset using the firmware
upgrade code. Simply sending the URL "reboot" or "factory" is enough.
Signed-off-by: John Crispin <john@phrozen.org>
The package wlan-ap-keys will copy the keys from our local cloud-sdk
instance into the image. If it is enabled we do not want to ship the
existing keys.
Signed-off-by: John Crispin <john@phrozen.org>