olsrd: hotplug-script: take config-file as marker for 'init-script-was-already-invoke...
authorBastian Bittorf <bittorf@bluebottle.com>
Sun, 24 Nov 2013 14:21:17 +0000 (15:21 +0100)
committerBastian Bittorf <bittorf@bluebottle.com>
Sun, 24 Nov 2013 14:21:17 +0000 (15:21 +0100)
olsrd/files/olsrd.hotplug.sh

index db709a8..8b110d4 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
                        }