summaryrefslogtreecommitdiff
path: root/source/n/dhcpcd/define-SERVICEstuff-for-Slackware.patch
blob: ca0273f36603735040aa00cae5244656f16164c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 293f23ad36f2c84cf67c483d944157834f4417a6 Mon Sep 17 00:00:00 2001
From: Robby Workman <rworkman@slackware.com>
Date: Wed, 23 May 2012 21:33:30 -0500
Subject: [PATCH] configure: Define SERVICE* for Slackware

Slackware uses /etc/rc.d/rc.$service instead of just $service,
so configure doesn't find those.  This patch overrides the
defaults for SERVICEEXISTS, SERVICECMD, and SERVICESTATUS.
---
 configure |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure b/configure
index b334497..e6554ca 100755
--- a/configure
+++ b/configure
@@ -413,6 +413,12 @@ if [ -z "$SERVICECMD" ]; then
 		fi
 	done
 fi
+if [ -e /etc/slackware-version ]; then
+	echo "Overriding service status check for Slackware Linux"
+	SERVICEEXISTS="[ -x /etc/rc.d/rc.\$1 ]"
+	SERVICECMD="/etc/rc.d/rc.\$1 \$2"
+	SERVICESTATUS="/etc/rc.d/rc.\$1 status 1>/dev/null 2>&1"
+fi
 if [ -e /etc/arch-release ]; then
 	echo "Overriding service status check for Arch Linux"
 	SERVICESTATUS="[ -e /var/run/daemons/\$1 ]"
-- 
1.7.10.1