From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 99FBF1381F3 for ; Fri, 5 Jul 2013 21:55:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 45558E09D5; Fri, 5 Jul 2013 21:55:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CE473E09D5 for ; Fri, 5 Jul 2013 21:55:49 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC6F533E918 for ; Fri, 5 Jul 2013 21:55:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 62A7EE468F for ; Fri, 5 Jul 2013 21:55:47 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1373061281.793efb2eef4ea146b6e0db90f11e03fd193246be.WilliamH@gentoo> Subject: [gentoo-commits] proj/livecd-tools:master commit in: init.d/ X-VCS-Repository: proj/livecd-tools X-VCS-Files: init.d/fixinittab X-VCS-Directories: init.d/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 793efb2eef4ea146b6e0db90f11e03fd193246be X-VCS-Branch: master Date: Fri, 5 Jul 2013 21:55:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 15e243b9-273a-44c7-b4cf-7df1b723ec70 X-Archives-Hash: 73a23368259f0d29a131db6f0a7fc5d3 commit: 793efb2eef4ea146b6e0db90f11e03fd193246be Author: Richard Farina gentoo org> AuthorDate: Fri Jul 5 21:53:22 2013 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Jul 5 21:54:41 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/livecd-tools.git;a=commit;h=793efb2e fixinittab: Do not overwrite an existing backup --- init.d/fixinittab | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.d/fixinittab b/init.d/fixinittab index c485637..56bfbcc 100755 --- a/init.d/fixinittab +++ b/init.d/fixinittab @@ -14,7 +14,10 @@ start() ebegin "Adjusting inittab" # Create a backup - cp -f /etc/inittab /etc/inittab.old + if [ ! -e /etc/inittab.old ] + then + cp -f /etc/inittab /etc/inittab.old + fi # Comment out current getty settings sed -i -e '/^c[0-9]/ s/^/#/' /etc/inittab