From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 63A901396D0 for ; Mon, 28 Aug 2017 18:43:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A15651FC040; Mon, 28 Aug 2017 18:43:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7D73F1FC040 for ; Mon, 28 Aug 2017 18:43:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 57C9A33BE69 for ; Mon, 28 Aug 2017 18:43:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0A2C785DA for ; Mon, 28 Aug 2017 18:43:51 +0000 (UTC) From: "Richard Farina" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Farina" Message-ID: <1503945393.a4781f1f7cd1c5cfacfb073628a9d3bc4c0c8e99.zerochaos@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: zerochaos X-VCS-Committer-Name: Richard Farina X-VCS-Revision: a4781f1f7cd1c5cfacfb073628a9d3bc4c0c8e99 X-VCS-Branch: master Date: Mon, 28 Aug 2017 18:43:51 +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: 24703965-8c43-4426-9007-8610b72bbcdf X-Archives-Hash: bfba7f98353117e96d420d99946b9998 commit: a4781f1f7cd1c5cfacfb073628a9d3bc4c0c8e99 Author: Rick Farina (Zero_Chaos) gentoo org> AuthorDate: Mon Aug 28 18:36:33 2017 +0000 Commit: Richard Farina gentoo org> CommitDate: Mon Aug 28 18:36:33 2017 +0000 URL: https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=a4781f1f log in as user when possible catalyst can create a user, if the cd is built like that it wasn't an accident, use that user to log in instead of root init.d/fixinittab | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.d/fixinittab b/init.d/fixinittab index 35513a6..de9ca06 100644 --- a/init.d/fixinittab +++ b/init.d/fixinittab @@ -54,12 +54,12 @@ start() then for x in 0 1 2 3 4 5 6 do - echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin root tty${x}" >> /etc/inittab + echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin $(id -nu 1000 2>/dev/null || echo root) tty${x}" >> /etc/inittab done else for x in 1 2 3 4 5 6 do - echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin root tty${x}" >> /etc/inittab + echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin $(id -nu 1000 2>/dev/null || echo root) tty${x}" >> /etc/inittab done fi fi @@ -78,7 +78,7 @@ start() then for x in 1 2 3 4 5 6 do - echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin root tty${x}" >> /etc/inittab + echo "c${x}:12345:respawn:/sbin/mingetty --noclear --autologin $(id -nu 1000 2>/dev/null || echo root) tty${x}" >> /etc/inittab done else eindent