olsrd: hotplug-script: take config-file as marker for 'init-script-was-already-invoke...
[feed/routing.git] / olsrd / files / olsrd.hotplug.sh
index db709a8155162896428d3dc4d50382b9ccec9c47..8b110d46a0ed8b3e4ca4f30952c146058d6a2fa6 100755 (executable)
@@ -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
                        }