From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QGMjG-0007l6-66 for garchives@archives.gentoo.org; Sun, 01 May 2011 02:49:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABDB21C02B; Sun, 1 May 2011 02:49:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 7714F1C035 for ; Sun, 1 May 2011 02:49:07 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD6341B4038 for ; Sun, 1 May 2011 02:49:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D92278050B for ; Sun, 1 May 2011 02:49:05 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <66f19c49e11110cbe6c8d13aebd7b66cf3b85dcc.williamH@gentoo> Subject: [gentoo-commits] proj/livecd-tools:master commit in: / X-VCS-Repository: proj/livecd-tools X-VCS-Files: autoconfig X-VCS-Directories: / X-VCS-Committer: williamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 66f19c49e11110cbe6c8d13aebd7b66cf3b85dcc Date: Sun, 1 May 2011 02:49:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 433f5f7f03f25f7d08e89a7c7778544d commit: 66f19c49e11110cbe6c8d13aebd7b66cf3b85dcc Author: William Hubbs gentoo org> AuthorDate: Thu Feb 10 23:21:48 2011 +0000 Commit: William Hubbs gentoo org> CommitDate: Sun May 1 02:42:36 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/livecd-tools.= git;a=3Dcommit;h=3D66f19c49 check_svc should use yesno and rc-service --- autoconfig | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoconfig b/autoconfig index e9eba0f..cfa8bf6 100755 --- a/autoconfig +++ b/autoconfig @@ -210,12 +210,12 @@ depend() { # Checks whether a service will be started by autoconfig. # Usage: check_svc var service [service_alternative] check_svc() { - if [ "${1}" =3D "yes" ] + if yesno "${1}" then - if [ -x "/etc/init.d/${2}" ] + if rc-service -e "${2}" then echo "${2}" - elif [ -n "${3}" -a -x "/etc/init.d/${3}" ] + elif [ -n "${3}" ] && rc-service -e ${3}" then echo "${3}" fi=09