summaryrefslogtreecommitdiff
path: root/pcr/openresolv-openrc/openrc-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/openresolv-openrc/openrc-path.patch')
-rw-r--r--pcr/openresolv-openrc/openrc-path.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/pcr/openresolv-openrc/openrc-path.patch b/pcr/openresolv-openrc/openrc-path.patch
new file mode 100644
index 000000000..dd550623a
--- /dev/null
+++ b/pcr/openresolv-openrc/openrc-path.patch
@@ -0,0 +1,30 @@
+--- openresolv-3.6.1/configure 2015-01-11 13:53:25.286463178 +0530
++++ openresolv-3.6.1/configure-openrc 2015-01-11 13:52:42.716464000 +0530
+@@ -159,7 +159,11 @@
+
+ if [ -z "$RESTARTCMD" ]; then
+ printf "Checking for OpenRC ... "
+- if [ -x /sbin/rc-service ]; then
++ # For Arch /sbin -> /usr/bin
++ 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"
++ elif [ -x /sbin/rc-service ]; then
+ RESTARTCMD="if /sbin/rc-service -e \1; then /sbin/rc-service \1 -- -Ds restart; fi"
+ echo "yes"
+ else
+@@ -178,7 +182,12 @@
+ fi
+ if [ -z "$RESTARTCMD" ]; then
+ printf "Checking for service ... "
+- if [ -x /sbin/service ]; then
++ # For Arch /sbin -> /usr/bin
++ if [ -x /usr/bin/service ]; then
++ RCDIR=/etc/init.d
++ RESTARTCMD="if /usr/bin/service \1; then /usr/bin/service \1 restart; fi"
++ echo "yes"
++ elif [ -x /sbin/service ]; then
+ RCDIR=/etc/init.d
+ RESTARTCMD="if /sbin/service \1; then /sbin/service \1 restart; fi"
+ echo "yes"
+