summaryrefslogtreecommitdiff
path: root/olsrd/files
Commit message (Collapse)AuthorAgeFilesLines
* olsrd: fix meshing via wireguard tunnelsNick Hainke2022-01-081-0/+4
| | | | | | | 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>
* olsrd: wait for wireless to initialize before startingPerry Melange2021-10-132-0/+28
| | | | | | | | | | 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>
* olsrd: rename general to procdNick Hainke2021-08-014-8/+8
| | | | | | It was requested to name the section "procd". Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: make respawn_threshold configurableNick Hainke2021-08-014-8/+14
| | | | | | | | | | 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>
* olsrd: improve respawn settingsTobias Schwarz2021-07-314-3/+27
| | | | | | | | | | | | 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>
* olsrd: add olsrd-neigh.shMartin Hübner2021-07-111-0/+109
| | | | | | | | | 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>
* olsrd: fix olsrd starting before networkNick Hainke2021-07-072-0/+23
| | | | | | | | | | | | | | | | | | 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>
* olsrd: reload if config changed via uciNick Hainke2021-06-232-0/+6
| | | | | | | Fixes: https://github.com/openwrt/luci/issues/5139 Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: switch to procdNick Hainke2021-06-114-106/+113
| | | | Signed-off-by: Nick Hainke <vincent@systemli.org>
* olsrd: find_most_recent_plugin_libary() fix sortingBastian Bittorf2017-02-241-2/+3
|
* olsrd: find_most_recent_plugin_libary() fix input with 'exact' filenamesBastian Bittorf2017-02-141-0/+1
|
* olsrd: init-script: fix new plugin-lazymodeBastian Bittorf2017-02-131-3/+8
| | | | | | make sure that we do not select 'olsrd_dyn_gw_plain.so.0.4' if user wants 'olsrd_dyn_gw.so.0.5'
* olsr: hotplug: fix a wrong grep (never successful) in ↵Bastian Bittorf2017-02-121-2/+2
| | | | olsrd_interface_already_in_config()
* olsr: fix minor complain from 'shellcheck'Bastian Bittorf2017-02-121-11/+19
|
* olsr: smartfw: fix a syntax error whwile checking for 'nowan'Bastian Bittorf2017-02-121-3/+3
| | | | | 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")
* olsr: init-script: minor style changesBastian Bittorf2017-02-121-37/+26
| | | | | | 1) echo -n -> printf 2) do not 'return 0' in functions where rc is 0 anyway 3) calc with $(( $var + $x )) -> $(( var + x ))
* olsr: allow lazy-plugin-naming: e.g. olsrd_txtinfo (not olsrd_txtinfo.so.1.2)Bastian Bittorf2017-02-121-17/+31
| | | | | | | | 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...
* olsrd: update to v0.9.6Ferry Huberts2017-02-012-3/+3
| | | | Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
* olsrd: init: updated (c)-year to 2017root2017-01-151-1/+1
|
* olsrd: remove deprecated 6and4 compatibilitySven Roederer2017-01-151-66/+9
| | | | | | | | | | 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>
* Replace == operator in test with = operator.Stefan Sperling2016-03-061-6/+6
| | | | Requested by bittorf in https://github.com/openwrt-routing/packages/pull/155
* Fix '/etc/init.d/olsrd6 restart' breaks IPv4 SmartGateway.Stefan Sperling2016-03-031-6/+14
| | | | | | 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.
* make ipv6only plugin option boolean. Without this, the value will be written ↵Manuel Munz2015-08-011-1/+1
| | | | as '0' or '1' to the generated configs while it should be 'no' or 'yes'
* [olsrd] adapt init script for 0.6.8 (PingCmd option)André Gaul2015-01-031-1/+1
| | | | | | | | 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.
* olsrd: change name of PID-file for olsrd4 from '/var/run/olsrd4.pid' to ↵Bastian Bittorf2014-08-191-1/+1
| | | | '/var/run/olsrd.pid' to be compatible with freifunk-watchdog-scripts (this is the default old behaviour)
* olsrd: backward compatibility (config and init script)Alessio Caiazza2014-06-125-35/+73
|
* olsrd: Added missing $IPKG_INSTROOT.Jernej Kos2014-06-092-2/+2
|
* olsrd: hotplug script works for IPv4 and IPv6Alessio Caiazza2014-05-281-6/+14
| | | | This should fix issue #16
* olsrd: avoid fake startup-error messagesAlessio Caiazza2014-05-281-0/+1
| | | | Calling service_check too early may result in a false reading
* olsrd: configuration sanity checksAlessio Caiazza2014-05-285-56/+31
| | | | | * do not start in presence of the old /etc/config/olsrd * use always use the appropriate IpVersion.
* olsrd: splitting IPv6/4 configuration and start scriptsAlessio Caiazza2014-05-285-10/+44
| | | | | | | 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
* IPv6 SmartGW doesn't require IPv6 NAT supportDaniel Golle2014-02-111-1/+1
|
* olsrd: hotplug: changed a varname which broke in ↵Bastian Bittorf2014-01-041-3/+3
| | | | 3a1fd118833e8c6d341fde4ef99d31786c3614c9
* olsrd: hotplug: optimize execution-speed and simplify using already existing ↵Bastian Bittorf2014-01-031-14/+22
| | | | GLOBAL vars instead of encapsulating vars from function to function, cleanups and comments in source
* olsrd: hotplug-script: take config-file as marker for ↵Bastian Bittorf2013-11-241-1/+1
| | | | '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
* Merge pull request #10 from mmunz/upstreamBastian Bittorf2013-11-141-1/+1
|\ | | | | Fix config creation for multiple LinkQualityMult entries in uci config
| * Fix config creation for multiple LinkQualityMult entries in uci configManuel Munz2013-11-121-1/+1
| |
* | olsrd: hotplug: dont test if daemon is enabled, but look for a written ↵Bastian Bittorf2013-11-111-2/+4
|/ | | | 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
* olsrd: hotplug-script: bugfix: move function calls down, otherwise the ↵Bastian Bittorf2013-09-251-10/+10
| | | | functions are not known yet (thanks bluse-bluw for reporting)
* olsrd: hotplug-script: cleanup/simplifyBastian Bittorf2013-09-251-6/+9
|
* olsrd: added hotplug script, which is needed for openwrt >= r38023 - ↵Bastian Bittorf2013-09-251-0/+50
| | | | otherwise it can happen that several interfaces are not known to olsrd at boottime
* if we could not get the l3 device in olsrd_write_interface then try to get theManuel Munz2013-08-071-0/+6
| | | | | | 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):
* [PATCH] fix olsr.init script function olsrd_write_plparam() as it wrongly ↵Thomas Huehn2013-04-261-1/+4
| | | | removes dashes. olsrd deamon did not start when the nameservice plugin was active.
* Revert "olsr: init: JOW IS THE BEST !!!"Bastian Bittorf2013-04-191-1/+1
| | | | This reverts commit 2bc5304b697fcff3f184b17a8bb9c06646420b42.
* olsr: init: JOW IS THE BEST !!!Bastian Bittorf2013-04-191-1/+1
|
* olsrd: init: cosmetics: always include to name of the script in logoutputBastian Bittorf2013-04-191-2/+2
|
* olsr: init: log: move the error logging just under the normal loggerBastian Bittorf2013-04-191-6/+5
|
* olsrd: init: verbose logging if daemon-startup fails. till now everything is ↵Bastian Bittorf2013-04-191-0/+4
| | | | quiet in this situation. reproduce via configuring httpinfo-plugin on ipv6-socket (which throws an silent error)
* olsrd: init: fix all work with is done via IFS (storing old value, set IFS, ↵Bastian Bittorf2013-04-191-28/+9
| | | | work, set back to old value)
* olsrd: init: updated (c)-year to 2013Bastian Bittorf2013-04-191-1/+1
|