On 07/19/2016 12:36 AM, Jan-Tarek Butt wrote:
.../usr/lib/autoupdater/upgrade.d/10drop-batman-adv-routing-tables | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 package/gluon-autoupdater/files/usr/lib/autoupdater/upgrade.d/10drop-batman-adv-routing-tables
diff --git a/package/gluon-autoupdater/files/usr/lib/autoupdater/upgrade.d/10drop-batman-adv-routing-tables b/package/gluon-autoupdater/files/usr/lib/autoupdater/upgrade.d/10drop-batman-adv-routing-tables new file mode 100755 index 0000000..e931a0e --- /dev/null +++ b/package/gluon-autoupdater/files/usr/lib/autoupdater/upgrade.d/10drop-batman-adv-routing-tables @@ -0,0 +1,6 @@ +#!/bin/sh
+. /lib/gluon/autoupdater/lib.sh
+/etc/init.d/fastd restart +wifi
Thanks, but I see various issues with this patch; I think I'll apply a different version after a few tests.
* You should really stop everything and certainly not restart anything (restarting should happen in the abort.d hook) * fastd and wifi is not enough, there may be other mesh interfaces * This should go into gluon-mesh-batman-adv-core, not gluon-autoupdater * You don't use anything from /lib/gluon/autoupdater/lib.sh, so you should not source it
I'll have to check how the Lua process reacts to "broken pipe" situations (I'm not sure if it ignores SIGPIPE by default), so running the autoupdater manually won't be interrupted when the SSH connection fails.
-- NeoRaider