0004-ramips-mt7621-make-DSA-images-swconfig-upgradable.patch seems already applied, but not sure. Dropped it. The rest was either skipped by git as already applied or rebased. This is just for the nftables PR to upgrade the modules but I thought this could save some work when reused.
22 lines
718 B
Diff
22 lines
718 B
Diff
From: Maciej Krüger <mkg20001@gmail.com>
|
|
Date: Sun, 10 Apr 2022 01:58:41 +0200
|
|
Subject: oonf-olsrd2: add support to check if service is running
|
|
|
|
diff --git a/oonf-olsrd2/files/olsrd2.init b/oonf-olsrd2/files/olsrd2.init
|
|
index 04b30ffa4a7a4d65e2fb9944e4570273a9418f2e..f516b1b17e32b7eba7c4d485d72a123c87fb52f6 100755
|
|
--- a/oonf-olsrd2/files/olsrd2.init
|
|
+++ b/oonf-olsrd2/files/olsrd2.init
|
|
@@ -5,4 +5,12 @@ DAEMON='olsrd2'
|
|
|
|
[ -n "$IPKG_INSTROOT" ] || {
|
|
. /lib/functions/oonf_init.sh
|
|
+
|
|
+ running() {
|
|
+ test -e "/tmp/run/olsrd2.pid" && test -e "/proc/$(cat "/tmp/run/olsrd2.pid")" && return 0
|
|
+ return 1
|
|
+ }
|
|
+
|
|
+ extra_command "running" "Check if service is running"
|
|
}
|
|
+
|