Refs https://dev.openwrt.org/ticket/10241

There needs to be a delay in the restart function otherwise it does
not actually restart the aiccu processes.
Additionally restart must be enabled in the config file.

The following patch fixes the issue for me:


Signed-off-by: Matthew Wire <[email protected]>
Index: ipv6/aiccu/files/aiccu.init
===================================================================
--- ipv6/aiccu/files/aiccu.init (revision 30618)
+++ ipv6/aiccu/files/aiccu.init (working copy)
@@ -59,6 +59,7 @@
       local cfg="$1"
       config_get_bool restart "$cfg" restart 0
       [ "$restart" -eq 1 ] && stop_instance "$cfg"
+       sleep 5
       start_instance "$cfg"
 }

Index: ipv6/aiccu/files/aiccu.config
===================================================================
--- ipv6/aiccu/files/aiccu.config       (revision 30618)
+++ ipv6/aiccu/files/aiccu.config       (working copy)
@@ -9,3 +9,4 @@
       option defaultroute     '1'
       option nat              '1'
       option heartbeat        '1'
+       option restart          '1'
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to