From 6c4260473098b263647e5e7a4c3aeafe85293e9c Mon Sep 17 00:00:00 2001 From: David Bauer Date: Wed, 17 Jan 2024 21:50:58 +0100 Subject: [PATCH] gluon-ebtables-limit-arp: stop for autoupdater Stop and start the gluon-arp-limiter service before the network is brought down when commencing update. Start the service after the network is brought back up when aborting. Signed-off-by: David Bauer --- .../files/usr/lib/autoupdater/abort.d/15start-arp-limiter | 6 ++++++ .../files/usr/lib/autoupdater/upgrade.d/05stop-arp-limiter | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100755 package/gluon-ebtables-limit-arp/files/usr/lib/autoupdater/abort.d/15start-arp-limiter create mode 100755 package/gluon-ebtables-limit-arp/files/usr/lib/autoupdater/upgrade.d/05stop-arp-limiter diff --git a/package/gluon-ebtables-limit-arp/files/usr/lib/autoupdater/abort.d/15start-arp-limiter b/package/gluon-ebtables-limit-arp/files/usr/lib/autoupdater/abort.d/15start-arp-limiter new file mode 100755 index 0000000000..982629c4fc --- /dev/null +++ b/package/gluon-ebtables-limit-arp/files/usr/lib/autoupdater/abort.d/15start-arp-limiter @@ -0,0 +1,6 @@ +#!/bin/sh + +. /lib/gluon/autoupdater/lib.sh + +# Start after network +start_enabled gluon-arp-limiter diff --git a/package/gluon-ebtables-limit-arp/files/usr/lib/autoupdater/upgrade.d/05stop-arp-limiter b/package/gluon-ebtables-limit-arp/files/usr/lib/autoupdater/upgrade.d/05stop-arp-limiter new file mode 100755 index 0000000000..f9fdbd5c46 --- /dev/null +++ b/package/gluon-ebtables-limit-arp/files/usr/lib/autoupdater/upgrade.d/05stop-arp-limiter @@ -0,0 +1,6 @@ +#!/bin/sh + +. /lib/gluon/autoupdater/lib.sh + +# Stop before network +stop gluon-arp-limiter