Commit graph

32 commits

Author SHA1 Message Date
Saverio Proto
4ea4cb2969 [packages] olsrd: init: reduce code duplication by reusing already_in_schema()
changed scope/position of this function, and reuse it.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@36300 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-10 10:48:36 +00:00
Saverio Proto
34e1ff5702 [packages] olsrd: init: parse new var 'speed', which translates to several other vars
Range is 1...20 where 1 is fastest protocol speed and 20 is the slowest protocol speed

Like in the Freifunk-Firmware from sven-ola we accept now a per-interface
option 'speed', which should range from 1...20 and is sanitized. when the
value is not in valid range, it defaults to 6 which allows the daemon to
start and behave like in a city-wide mesh. (same default like in freifunk firmware)

The value 'speed' overrides the normal values for emission intervals like
Hello-, Tc-, Mid-, Hna-Interval/ValidityTime or sets them explicitely. this
makes it much easier to play with intervals on several routers:

Instead of changes eight values, we only have to alter 1 value.

The value-calculation is tested since several years.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@36299 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-10 10:48:35 +00:00
Saverio Proto
2dd66c6b82 [packages] olsrd: init: for better reuse, make a function out of a procedure get_value_for_entry()
Later we want to reuse that functionality, to avoid code duplication
we make a function with clean entry and return-codes, so we can do e.g.:

get_value_for_entry "$entry" || continue

which is also better readable.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@36298 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-10 10:48:32 +00:00
Saverio Proto
cfa9769cd6 [packages] olsrd: init: cleanup an expensive/forky call
for determining all gateways in all routing tables
1) write out the ip-call, never ever abbreviate in scripts
2) avoid forks: sorting/uniq is not needed, if we only append
   yet unappended words
3) use an extra function() for this, better readable
4) check for installed ip-command

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@35680 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-19 17:01:38 +00:00
Saverio Proto
cb75e9bf4c [packages] olsrd: don't try to start smartgw if not all deps are installed
[packages] olsrd: don't try to start smartgw if not all deps are installed
if kmod-ipip is missing, there is no need to invoke an expensive operation.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@35679 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-19 17:01:37 +00:00
Saverio Proto
902a6ed102 [packages] olsrd: use system-logger instead of dumping to stdout
packages: olsrd: use system-logger instead of dumping to stdout,
which is cleaner and also seen if not interactive called. minor
cleanups in some messages, also show function-name in messages.
by using 'logger -s' we can see the message on screen and in logs.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@35678 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-19 17:01:34 +00:00
Saverio Proto
1100d1953e [packages] olsrd: Version bump to 0.6.5.1 , note that tas plugin has been discontinued in this release and two new plugins are included, the pud and sgwdynspeed plugins
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@35594 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-13 18:08:10 +00:00
Jo-Philipp Wich
4e8c564cf8 [packages] olsrd: use network.sh to find devices
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@31966 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-29 00:59:38 +00:00
Nicolas Thill
9b553c4451 packages/olsrd: use new service functions (again)
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@29172 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-16 09:44:11 +00:00
Saverio Proto
7662f0f520 [packages] olsrd: trivial, fixing copyright header
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@29135 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 21:31:06 +00:00
Saverio Proto
059b26c242 [packages] olsrd: Manuel Munz freifunk@somakoma.de modified init file of olsrd with improvements for 6and4 operation and also for setup of smartgw
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@29134 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 21:27:40 +00:00
Nicolas Thill
c12b51a7e0 packages/olsrd: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@29065 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-13 22:15:58 +00:00
Jo-Philipp Wich
f82d370e82 [packages] olsrd: add support for InterfaceDefaults section
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@24257 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-05 01:53:23 +00:00
Florian Fainelli
277145dbfa [package] olsrd.init add virtual interface name
This patch add interface name handling for the NonOlsrIf Option in olsrd init script.
e.g. NonOlsrIf=lan and not NonOlsrIf=eth0

Signed-off-by: Patrick Grimm <patrick@lunatiki.de>

git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@22918 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-04 18:27:16 +00:00
Saverio Proto
341599af3f Version 0.6.0 of OLSR allows the 0.0.0.0 setting for the plugin so any host can gather information
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@21677 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-04 19:34:41 +00:00
Saverio Proto
10e022cd1f Removing default values enforced but init script, this way OLSR will use its default values that are suggested by the developers. This change was committed within the Wireless Battle Mesh V3 meeting
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@21676 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-04 19:33:29 +00:00
Vasilis Tsiligiannis
fd9ebe1ee4 [packages] olsrd: Update configuration schema with OLSRd default settings
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@21586 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-27 21:46:38 +00:00
Vasilis Tsiligiannis
c21c08cd32 [pacakges] olsrd: Update to v0.6.0
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@21585 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-27 21:43:30 +00:00
Travis Kemen
ecf437827b fixes OLSR 6and4 mode does not work if HNA entries are configured, closes #4803
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@19868 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-26 05:16:56 +00:00
Jo-Philipp Wich
5ab7c21e77 [packages] olsrd: allow pipe signs for service descriptions in olsr init script; bump pkg revision
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@17106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-03 18:35:48 +00:00
Jo-Philipp Wich
454a2ea72f [PATCH] [olsrd] Start olsrd after starting quagga
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@15673 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-07 13:33:08 +00:00
Jo-Philipp Wich
4a53a14af5 packages/net/olsrd: add example to use custom configs instead of uci
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@13562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-09 10:32:28 +00:00
Jo-Philipp Wich
2e65838e5f package/net/olsrd:
- build arprefresh plugin too
	- introduce new 6and4 mode to allow both ipv4 and ipv6 olsrd instances at the same time
	- fix incorrect quoting for the Ip6AddrType parameter
	- bump package revision
patch from Alina Friedrichsen - thanks!


git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@13286 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-18 23:19:44 +00:00
Felix Fietkau
af1594ef83 add new olsrd init script and default config by Alina Friedrichsen
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@12553 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-08 12:42:13 +00:00
Aaron Kaplan
47c0c2c5e0 update to current options
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@11751 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-08 21:32:37 +00:00
Felix Fietkau
b2434259bf fix olsr config errors
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@9603 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-28 01:49:40 +00:00
Felix Fietkau
a48f39dbc0 fix olsrd cflags handling, add new init script and config by Alina Friedrichsen
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@9431 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-24 17:25:48 +00:00
Mike Baker
410a936244 START/STOP values must be specified in the init script
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@7164 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 10:38:53 +00:00
Florian Fainelli
cac7165539 Fix pid writing with olsrd (#1480)
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@6609 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-18 17:36:54 +00:00
Felix Fietkau
e40967fe14 init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enable|disable) manages symlinks
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@5128 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-15 21:03:30 +00:00
Felix Fietkau
2689beb8a1 port lots of init scripts over to rc.common (more to come)
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@4917 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-10-04 20:57:49 +00:00
Nicolas Thill
3ec9194249 port olsrd to buildroot-ng
git-svn-id: svn://svn.openwrt.org/openwrt/packages/net/olsrd@4251 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-07-24 07:20:08 +00:00