summarylogtreecommitdiffstats
path: root/openrc-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'openrc-check.patch')
-rw-r--r--openrc-check.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/openrc-check.patch b/openrc-check.patch
new file mode 100644
index 000000000000..14ffe47db331
--- /dev/null
+++ b/openrc-check.patch
@@ -0,0 +1,16 @@
+--- openresolv-3.8.1/configure 2016-05-19 16:06:35.000000000 +0530
++++ openresolv-3.8.1/configure.new 2017-01-26 20:56:30.843262243 +0530
+@@ -64,6 +64,13 @@ if [ -z "$RUNDIR" ]; then
+ RUNDIR=/var/run
+ fi
+ fi
++if [ -z "$RESTARTCMD" ]; then
++ printf "Checking for OpenRC ... "
++ if [ -x /usr/bin/rc-service ]; then
++ RESTARTCMD="if /usr/bin/rc-service -e \1; then /usr/bin/rc-service \1 -- -Ds restart; fi"
++ echo "yes"
++ fi
++fi
+
+ : ${SED:=sed}
+