blob: 14ffe47db331accf86053c3ef3940087efb78243 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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}
|