From e459ca61d20d14186bd35088d8dc0d7c38962425 Mon Sep 17 00:00:00 2001 From: Bastian Bittorf Date: Sun, 24 Nov 2013 15:21:17 +0100 Subject: [PATCH] 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 --- olsrd/files/olsrd.hotplug.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.30.2