| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
The procd script was not adding the wireguard interfaces. Add corner case
in the init script to allow meshing via wireguard.
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
| |
|
|
|
|
|
|
|
|
| |
Wait for wireless to initialize (pending="false") to ensure
that any olsrd(6) configured interfaces and their associated
devices are up. This provides the init script the ability
to properly add all interface sections to the generated
config file /tmp/etc/olsrd(6).conf
Signed-off-by: Perry Melange <isprotejesvalkata@gmail.com>
|
| |
|
|
|
|
| |
It was requested to name the section "procd".
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
| |
|
|
|
|
|
|
|
|
| |
Also make respawn_threshold configurable. Further, add default
values for:
- respawn_threshold 3600
- respawn_timeout 15
- respawn_retry 0
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This increases the amount of seconds to wait before a service restart
attempt from 5 to 15 seconds and allows unlimited retries. Olsrd
sometimes crashes together with a network interface and 5 seconds can
be too short to bring back up a crashed network interface, which is
required for olsrd to restart. It also adds the ability to configure
the wait time (respawn_timeout) and the number of retries
(respawn_retry).
Signed-off-by: Tobias Schwarz <info@tobias-schwarz.com>
|
| |
|
|
|
|
|
|
|
| |
This script originates from Freifunk Berlin. It prints a list of
all meshing neighbors known to olsrd on the command line.
Added: Error-checking for IPv4/IPv6-Hosts.
Signed-off-by: Martin Hübner <martin.hubner@web.de>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Should fix #691.
Sometimes the wifi interface is not ready before olsrd tries to access
it. This leads to warnings in the form of:
daemon.info olsrd: /etc/rc.d/S65olsrd: olsrd_write_interface()
Warning: Interface 'wireless0' not found, skipped
daemon.notice procd: /etc/rc.d/S65olsrd: olsrd: /etc/rc.d/S65olsrd:
olsrd_write_interface() Warning: Interface 'wireless0' not found, skipped
We make use of the "wait_for" procd command that allows us to wait for
the network before starting olsrd.
Tested-by: Noki
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
| |
|
|
|
|
|
| |
Fixes:
https://github.com/openwrt/luci/issues/5139
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
| |
|
|
| |
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
| | |
|
| | |
|
| |
|
|
|
|
| |
make sure that we do not select
'olsrd_dyn_gw_plain.so.0.4' if user wants
'olsrd_dyn_gw.so.0.5'
|
| |
|
|
| |
olsrd_interface_already_in_config()
|
| | |
|
| |
|
|
|
| |
introduced in 059b26c2 in 2011-nov-14 ("Manuel Munz freifunk@somakoma.de modified init
file of olsrd with improvements for 6and4 operation and also for setup of smartgw")
|
| |
|
|
|
|
| |
1) echo -n -> printf
2) do not 'return 0' in functions where rc is 0 anyway
3) calc with $(( $var + $x )) -> $(( var + x ))
|
| |
|
|
|
|
|
|
| |
overload init-skript's olsrd_write_loadplugin() with new function
find_most_recent_plugin_libary() - so now we can mix 'exact' and lazy
names. This change is backward compatible and now we have a better
migration strategy. This topic was hot again, after the latest updates
of a lot of plugins, resulting in non-working configs...
|
| |
|
|
| |
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
It's announced since several years, that such setups (one
olsrd running IPv4 and IPv6) will no be supported anymore.
See 4b06c42f97a0d45eaf41a42c065c2dba4d643408
(olsrd: splitting IPv6/4 configuration and start scripts)
Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
|
| |
|
|
| |
Requested by bittorf in https://github.com/openwrt-routing/packages/pull/155
|
| |
|
|
|
|
| |
Restarting olsrd for IPv6 clears SmartGateway firewall rules for both IPv4
and IPv6, and does not restore the IPv4 rules. As a result, IPv4 SmartGateway
functionality is broken after /etc/init.d/olsrd6 restart.
|
| |
|
|
| |
as '0' or '1' to the generated configs while it should be 'no' or 'yes'
|
| |
|
|
|
|
|
|
| |
olsrd 0.6.8 accepts a PingCmd parameter as of
http://olsr.org/git/?p=olsrd.git;a=commitdiff;h=0a26c52af3941eb9060b193cae5552f8d13fd28e.
The PingCmd is a string of the form "ping -c 1 -q %s" where %s is
replaced with an IP. This commit allows for '%' characters in an olsrd
option.
|
| |
|
|
| |
'/var/run/olsrd.pid' to be compatible with freifunk-watchdog-scripts (this is the default old behaviour)
|
| | |
|
| | |
|
| |
|
|
| |
This should fix issue #16
|
| |
|
|
| |
Calling service_check too early may result in a false reading
|
| |
|
|
|
| |
* do not start in presence of the old /etc/config/olsrd
* use always use the appropriate IpVersion.
|
| |
|
|
|
|
|
| |
As mentioned by zioproto[1] 6and4 is badly broken, this patch will
use 2 different configuration and init scripts.
[1] https://github.com/openwrt-routing/packages/issues/16#issuecomment-32892327
|
| | |
|
| |
|
|
| |
3a1fd118833e8c6d341fde4ef99d31786c3614c9
|
| |
|
|
| |
GLOBAL vars instead of encapsulating vars from function to function, cleanups and comments in source
|
| |
|
|
| |
'init-script-was-already-invoked-once' and not the pidfile: the pidfile ist not written if the daemon couldnt startup, e.g. because no interface was up yet and 'AllowNoInt' was not configured - thanks to bluse-blue for reporting this issue on a WDR4900v1
|
| |\
| |
| | |
Fix config creation for multiple LinkQualityMult entries in uci config
|
| | | |
|
| |/
|
|
| |
PID-file. this solves the issue, that hotplug fires multiple restarts during boot for each upcoming interface (e.g. lo, lan, wan, wifi1, wifi2) which is racy somehow, but leaves hotplug itself working after normal startup. also reduce forking by directly sourcing '/etc/init.d/olsrd' via rc.common
|
| |
|
|
| |
functions are not known yet (thanks bluse-bluw for reporting)
|
| | |
|
| |
|
|
| |
otherwise it can happen that several interfaces are not known to olsrd at boottime
|
| |
|
|
|
|
| |
physical device instead. But only if the protocoll is "static" or "none".
This is useful to write Interfaces in the resulting olsrd.conf file which
are not up at the time olsrd is starting (e.g. tunnel interfaces):
|
| |
|
|
| |
removes dashes. olsrd deamon did not start when the nameservice plugin was active.
|
| |
|
|
| |
This reverts commit 2bc5304b697fcff3f184b17a8bb9c06646420b42.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
quiet in this situation. reproduce via configuring httpinfo-plugin on ipv6-socket (which throws an silent error)
|
| |
|
|
| |
work, set back to old value)
|
| | |
|