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
This commit is contained in:
parent
44318d0589
commit
e459ca61d2
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ case "$ACTION" in
|
||||||
ifup)
|
ifup)
|
||||||
# only work after the first normal startup
|
# only work after the first normal startup
|
||||||
# also: no need to test, if enabled
|
# also: no need to test, if enabled
|
||||||
[ -e '/var/run/olsrd.pid' ] && {
|
[ -e '/var/etc/olsrd.conf' ] && {
|
||||||
olsrd_interface_needs_adding "$INTERFACE" "$DEVICE" && {
|
olsrd_interface_needs_adding "$INTERFACE" "$DEVICE" && {
|
||||||
. /etc/rc.common /etc/init.d/olsrd restart
|
. /etc/rc.common /etc/init.d/olsrd restart
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue