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 1R1Olx-0002dR-Ks for garchives@archives.gentoo.org; Wed, 07 Sep 2011 20:31:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5EAA121C2DD; Wed, 7 Sep 2011 20:24:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C7A3CE0817 for ; Wed, 7 Sep 2011 20:14:20 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 42F5E1B400B for ; Wed, 7 Sep 2011 20:14:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 9BBFD80042 for ; Wed, 7 Sep 2011 20:14:19 +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: Subject: [gentoo-commits] proj/openrc:master commit in: sh/ X-VCS-Repository: proj/openrc X-VCS-Files: sh/init-early.sh.Linux.in X-VCS-Directories: sh/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: b42ab3b2f4daaebdac043478f0ae385200a25535 Date: Wed, 7 Sep 2011 20:14:19 +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: 2fc9cc29bd81009a9433e8d129a77de3 commit: b42ab3b2f4daaebdac043478f0ae385200a25535 Author: William Hubbs gentoo org> AuthorDate: Wed Sep 7 20:11:04 2011 +0000 Commit: William Hubbs gentoo org> CommitDate: Wed Sep 7 20:11:04 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Db42ab3b2 Use checkpath to create /run/lock --- sh/init-early.sh.Linux.in | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/sh/init-early.sh.Linux.in b/sh/init-early.sh.Linux.in index 3a81ef9..83464f3 100644 --- a/sh/init-early.sh.Linux.in +++ b/sh/init-early.sh.Linux.in @@ -18,13 +18,7 @@ if [ -d /run ]; then fi eend $? fi - if [ ! -d /run/lock ]; then - mkdir /run/lock - fi - if [ -d /run/lock ]; then - chown root:uucp /run/lock - chmod 0775 /run/lock - fi + checkpath -d -m 0775 -o root:uucp /run/lock elif [ -e /run ]; then einfo "Unable to mount /run since it is not a directory" fi