From: Bastian Bittorf Date: Sun, 24 Nov 2013 14:21:17 +0000 (+0100) Subject: olsrd: hotplug-script: take config-file as marker for 'init-script-was-already-invoke... X-Git-Url: http://git.openwrt.org/?p=feed%2Frouting.git;a=commitdiff_plain;h=e459ca61d20d14186bd35088d8dc0d7c38962425 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 --- diff --git a/olsrd/files/olsrd.hotplug.sh b/olsrd/files/olsrd.hotplug.sh index db709a8..8b110d4 100755 --- a/olsrd/files/olsrd.hotplug.sh +++ b/olsrd/files/olsrd.hotplug.sh @@ -46,7 +46,7 @@ case "$ACTION" in ifup) # only work after the first normal startup # also: no need to test, if enabled - [ -e '/var/run/olsrd.pid' ] && { + [ -e '/var/etc/olsrd.conf' ] && { olsrd_interface_needs_adding "$INTERFACE" "$DEVICE" && { . /etc/rc.common /etc/init.d/olsrd restart }