From: Roy Marples Date: Fri, 2 Aug 2013 09:10:38 +0000 (+0000) Subject: Slackware uses /etc/rc.d/rc.$service instead of just $service, X-Git-Tag: v6.0.5~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a045e9909dd6682cd3523804687a8e6016a507fd;p=thirdparty%2Fdhcpcd.git 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. Thanks to Robby Workman. --- diff --git a/configure b/configure index 523fc03c..00dbfdb2 100755 --- a/configure +++ b/configure @@ -629,6 +629,17 @@ if [ -z "$SERVICECMD" ]; then echo "no" fi fi +if [ -z "$SERVICECMD" ]; then + printf "Checking for Slackware ... " + if [ -e /etc/slackware-version -a -d /etc/rc.d ]; then + 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" + echo "yes" + else + echo "no" + fi +fi if [ -z "$SERVICECMD" ]; then for x in /etc/init.d/rc.d /etc/rc.d /etc/init.d; do printf "Checking for $x ... "