Re-add olsr2 patch
This commit is contained in:
parent
8440c3ddfa
commit
9c92096c5c
@ -0,0 +1,21 @@
|
||||
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"
|
||||
}
|
||||
+
|
Loading…
Reference in New Issue
Block a user