Commit Graph

10 Commits

Author SHA1 Message Date
Bastian Bittorf 824f1a68e3 olsr: hotplug: fix a wrong grep (never successful) in olsrd_interface_already_in_config() 2017-02-12 20:41:04 +01:00
Alessio Caiazza 0a08b22f15 olsrd: backward compatibility (config and init script) 2014-06-12 12:57:12 +02:00
Alessio Caiazza ca16d8c8e1 olsrd: hotplug script works for IPv4 and IPv6
This should fix issue #16
2014-05-28 17:45:10 +02:00
Bastian Bittorf 003a28d88d olsrd: hotplug: changed a varname which broke in 3a1fd11883 2014-01-04 07:54:22 +01:00
Bastian Bittorf 3a1fd11883 olsrd: hotplug: optimize execution-speed and simplify using already existing GLOBAL vars instead of encapsulating vars from function to function, cleanups and comments in source 2014-01-03 21:00:45 +01:00
Bastian Bittorf e459ca61d2 olsrd: hotplug-script: take config-file as marker for '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 2013-11-24 15:21:17 +01:00
Bastian Bittorf d49b01e8cc olsrd: hotplug: dont test if daemon is enabled, but look for a written 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 2013-11-11 11:46:17 +01:00
Bastian Bittorf af1b35bd80 olsrd: hotplug-script: bugfix: move function calls down, otherwise the functions are not known yet (thanks bluse-bluw for reporting) 2013-09-25 16:42:24 +02:00
Bastian Bittorf 8ffcb5e3e5 olsrd: hotplug-script: cleanup/simplify 2013-09-25 15:30:44 +02:00
Bastian Bittorf 6bdbd50aaf olsrd: added hotplug script, which is needed for openwrt >= r38023 - otherwise it can happen that several interfaces are not known to olsrd at boottime 2013-09-25 14:36:21 +02:00