Commit Graph
23 Commits
Author SHA1 Message Date
Marcin Jurkowski 3763b238e7 collectd: add vmem uci config
Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2019-12-11 00:22:47 +01:00
Marcin Jurkowski b688595812 owfs: disable avahi dependency
Avahi is not a mandatory owfs dependency so disable it to avoid
Avahi/DBus daemons bloat.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2019-04-12 18:19:26 +02:00
Marcin Jurkowski f3bf7eb125 nbd: fix gnutls dependency
Get rid of gnutls dependency introduced in 5bca84b. Needs patching
configure script to make gnutls existence test optional.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2017-10-25 16:52:28 +02:00
Marcin Jurkowski 5bca84ba53 nbd: bump to 3.16.2
Upgrade nbd to version 3.16.2.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2017-10-18 21:12:52 +02:00
Marcin Jurkowski 73dbc6cf92 htpdate: modify init scripts to use procd and uci configuration
Modify init script to use standard uci configuration and procd for
process management. We benefit from:
- use of standard LEDE configuration with its ability to revert and
  commit changes
- validation of configuration variables
- procd taking care of restarting daemon when config changes and user
  wants to reload it
- automatic respawning of daemon process in case it dies

The source is patched to make it possible to run as a daemon in
foreground.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2017-09-15 10:51:31 +02:00
Marcin Jurkowski 66406f98db mwan3: fix interface-bound traffic when interface is offline
This commit fixed what 6d99b602 was supposed to fix without affecting
interface-bound traffic.

Before 6d99b602 interface-bound traffic was working normally as long
as at least one interface was online. However when the last interface
went offline, it was impossible to ping and such state was
unrecoverable.

Commit 6d99b602 fixed unrecoverable offline state problem (it was
possible to ping -I iface) but messed inteface-bound traffic. Traffic
with interface source address was not working if the interface was in
"offline" state, even if another interface was online.
The problem was caused by an inconsistent "offline" interface state:
iptables-related rules were kept while routing table and policy were
deleted.

The idea behind this commit is to:
 1. Keep all the rules for each interface (iptables, routing table,
    policy) regardless of its state. This ensures consistency,
 2. Make interface state hotplug events affect only iptables'
    mwan3_policy_* rules. Interface-related iptables, routing table
    and policy is removed only when mwan3 is manually stopped.

To make such changes possible, it's necessary to change the way
mwan3_policy_* rule generator keeps track of interface state hotplug
events.
Until now, it checked for the existence of custom interface-related
routing table (table id 1, 2, 3, ...). Clearly we can no longer rely
on that so each interface state is stored explicitly in file.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2017-09-12 11:18:52 +02:00
Marcin Jurkowski 284284ef2e mwan3: fix bugs introduced in 815e83d4
Fixes the following bugs introduced in commit 815e83d4:
 - hotplug: invalid parameter order when initial interface state is "online",
   mwan3track expects initial state to be the third argument
 - hotplug: missing source ip address when initial interface state is "offline"
 - mwan3track: source ip address should be the fourth argument

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2017-08-17 13:20:10 +02:00
Marcin Jurkowski de4fc2b5de mwan3: support various interface tracking methods
Adds support for interface tracking using either ping, arping or
httping. This allows to track interface status on networks with filtered
ICMP traffic or simply to monitor data link layer etc.

To facilitate binding to a specified interface its IP address is passed
as a new mwan3track parameter. It's currently required by httping
and possibly by other tools that may be added in the future.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2017-08-02 17:44:07 +02:00
Marcin Jurkowski aef80dbb9d httping: import from oldpackages and upgrade to version 2.5
Package version upgraded to 2.5 with patches:
- Fixed compiler warnings
- Fixed miscalculated response time
- Reduced binary size by stripping unused code

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2017-07-26 00:23:34 +02:00
Marcin Jurkowski bddaabafbf mini_snmpd: fix bugs and automatically reload daemon if one of monitored interfaces goes up/down
This commit fixes bugs, cleans and enhances init.d script:
1. The first disk and interface was passed to mini_snmpd with extra
   leading space.
   This bug caused the first monitored disk and interface to be
   inaccessible by SNMP daemon.
2. Automatically reload deamon if one of monitored interfaces goes
   up/down.
   Since mini_snmpd reads interface list only at startup, it won't
   detect any interface which appeared after the daemon was started.
   Fortunately we can use procd interface triggers to automatically
   restart the daemon.
3. Replace hand-written direct ubus calls and json data filtering with
   standard network functions.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2017-04-05 11:24:40 +02:00
Marcin Jurkowski a240aa9579 owfs: convert init scripts to procd style
Convert init.d scripts to use procd and take advantage of respawn
feature.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-03 01:10:50 +02:00
Marcin Jurkowski 5ba490239a nbd: use procd style init script for nbd-server
Runs nbd-server in foreground.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-02 12:48:43 +02:00
Marcin Jurkowski 6bb198c646 nbd: get rid of unnecessary Build/Compile macro
Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-02 12:46:25 +02:00
Marcin Jurkowski 891951cae2 nbd: bump copyright header and add PKG_LICENSE tag
Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-02 11:05:09 +02:00
Marcin Jurkowski e4017f1573 nbd: bump version to 3.11
Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-02 02:03:46 +02:00
Marcin Jurkowski 0c06e2a080 nbd: add nbd-client init script
Adds init.d and config files for nbd-client. Each section holds
parameters of one block device, where section name (eg. nbd0) is NBD
device name.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-02 02:03:38 +02:00
Marcin Jurkowski 9bf1fa6622 nbd: new package nbd-server
Network block device server allows to export a block device from router
to remote host. This is particularly useful if no network filesystem
server is feasible or direct access to a block device is needed.

It's been tested for nearly a month on ar71xx (TL-WR842ND) and proved to
be very stable and efficient solution.
The package comes with init.d script and conf.d file allowing to
configure most nbd-server options using standard uci interface.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-02 02:03:18 +02:00
Marcin Jurkowski 14f66e3ff5 nbd: import from oldpackages and make myself maintainer
Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-02 02:02:06 +02:00
Marcin Jurkowski 734d3e2284 strongswan: make kmod-ipsec6 dependency conditional
Makes kmod-ipsec6 requirement dependent on IPv6 support for packages.
This allows to disable unnecessary IPv6 kernel modules, saving
considerable amount of space.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-01 15:06:52 +02:00
Marcin Jurkowski 101fc3047c owfs: avoid npe in BUS_reset function
Monitor adapters (zeroconf, enet, usb and w1) don't have the reset
routine, causing null pointer dereference in BUS_reset function.

This patch has been submitted upstream:
https://sourceforge.net/p/owfs/bugs/67/

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-01 01:29:23 +02:00
Marcin Jurkowski 2d537bc98f owfs: fix the last netlink message recognition
This fixes the endless loop waiting for w1 subsystem connector status
message.

According to the 8a0427d kernel commit, the last (status) netlink msg
should have ack=seq, whereas all the others messages should have ack=seq+1.

This patch has been submitted upstream: https://sourceforge.net/p/owfs/bugs/66/.

For independent problem report, see this thread:
https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=98772

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-01 01:29:20 +02:00
Marcin Jurkowski d6fe15a85c owfs: make libow features configurable
Owfs shared library is quite large (700+ kB) by embedded devices standards.
The code for many different bus master and slave devices is compiled
into single big .so library. Had it been designed as modular,
dynamic-loadable plugins, we could split them into separate packages,
allowing user to install only the plugins he needs.

It's however possible to enable or disable libow features at compile time.
Here are some examples how much space can be saved turning off support for
unneeded devices and features:
 - By disabling USB adapter support libusb and libusb-compat is no
   longer needed, saving ~70kB of space. Bus masters using usbserial.ko
   kernel driver don't need this.
 - By disabling debug messages it's possible to reduce shared library
   size by 130kB.

This patch adds a menu allowing user to select libow features one wants
built in:
 - Bus master support: USB adapters through libusb, i2c adapters, kernel w1
   adapters
 - General features: zeroconf device announcement, debug messages, owtraffic
   bus reports
Default config options preserve previous library configuration i.e.
everything is selected except for owtraffic (which was disabled) and
kernel w1 driver (whose netlink interface has been broken since 2011).

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-01 01:20:27 +02:00
Marcin Jurkowski 7000746a30 owfs: Add init scripts and config files
Owfs daemons lack control scripts. This patch adds init.d scripts for owfs,
owserver, owhttpd and owftpd packages.
Most daemon options (both common libow and program-specific parameters)
are reflected as uci config variables.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-01 01:19:40 +02:00