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:
Bastian Bittorf 2013-11-24 15:21:17 +01:00
parent 44318d0589
commit e459ca61d2
1 changed files with 1 additions and 1 deletions

View File

@ -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
}