From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/livecd-tools:master commit in: init.d/
Date: Tue, 28 Jun 2011 05:22:38 +0000 (UTC) [thread overview]
Message-ID: <f5a0172d4c65049d5bb86c770d5cb52b324d77e3.WilliamH@gentoo> (raw)
commit: f5a0172d4c65049d5bb86c770d5cb52b324d77e3
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 28 05:11:44 2011 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jun 28 05:20:22 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/livecd-tools.git;a=commit;h=f5a0172d
modify the fixinittab service to allow autologin on the consoles
I would like to thank jmbsvicetto <AT> gentoo.org for this patch.
---
init.d/fixinittab | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/init.d/fixinittab b/init.d/fixinittab
index d355684..2691d53 100755
--- a/init.d/fixinittab
+++ b/init.d/fixinittab
@@ -34,14 +34,14 @@ start()
if [ -c "/dev/ttyS0" ]
then
LIVECD_CONSOLE_BAUD=$(stty -F /dev/ttyS0 speed)
- echo "s0:12345:respawn:/sbin/agetty -nl /bin/bashlogin ${LIVECD_CONSOLE_BAUD} ttyS0 vt100" >> /etc/inittab
+ echo "s0:12345:respawn:/sbin/agetty -l "/bin/login root" ${LIVECD_CONSOLE_BAUD} ttyS0 vt100" >> /etc/inittab
fi
# HPPA software PDC console (K-models)
if [ "${LIVECD_CONSOLE}" = "ttyB0" ]
then
mknod /dev/ttyB0 c 11 0
LIVECD_CONSOLE_BAUD=$(stty -F /dev/ttyB0 speed)
- echo "b0:12345:respawn:/sbin/agetty -nl /bin/bashlogin ${LIVECD_CONSOLE_BAUD} ttyB0 vt100" >> /etc/inittab
+ echo "b0:12345:respawn:/sbin/agetty -l "/bin/login root" ${LIVECD_CONSOLE_BAUD} ttyB0 vt100" >> /etc/inittab
fi
# FB / STI console
if [ -c "/dev/vc/1" -o -c "/dev/tts/1" -o -c "/dev/tty2" ]
@@ -51,19 +51,19 @@ 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/agetty -l "/bin/login 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/agetty -l "/bin/login root" tty${x}" >> /etc/inittab
done
fi
fi
if [ -c "/dev/hvc0" ]
then
einfo "Adding hvc console to inittab"
- echo "s0:12345:respawn:/sbin/agetty -nl /bin/bashlogin 9600 hvc0 vt320" >> /etc/inittab
+ echo "s0:12345:respawn:/sbin/agetty -l "/bin/login root" 9600 hvc0 vt320" >> /etc/inittab
fi
# The rest...
@@ -72,11 +72,11 @@ start()
then
for x in 1 2 3 4 5 6
do
- echo "c${x}:12345:respawn:/sbin/agetty -nl /bin/bashlogin 38400 tty${x} linux" >> /etc/inittab
+ echo "c${x}:12345:respawn:/sbin/agetty -l "/bin/login root" 38400 tty${x} linux" >> /etc/inittab
done
else
einfo "Adding ${LIVECD_CONSOLE} console to inittab"
- echo "s0:12345:respawn:/sbin/agetty -nl /bin/bashlogin ${LIVECD_CONSOLE_BAUD} ${LIVECD_CONSOLE} vt100" >> /etc/inittab
+ echo "s0:12345:respawn:/sbin/agetty -l "/bin/login root" ${LIVECD_CONSOLE_BAUD} ${LIVECD_CONSOLE} vt100" >> /etc/inittab
fi
fi
@@ -91,7 +91,7 @@ start()
*options\ \'[0-9]*) speed=`echo "$x" | sed "s/.*options '//; s/[^0-9].*//"` ;;
*) speed=9600 ;; # choose a default, only matters if it is serial
esac
- echo "$id:12345:respawn:/sbin/agetty -nl /bin/bashlogin ${speed} ${line} vt100" >> /etc/inittab
+ echo "$id:12345:respawn:/sbin/agetty -l "/bin/login root" ${speed} ${line} vt100" >> /etc/inittab
done
fi
next reply other threads:[~2011-06-28 5:22 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-28 5:22 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-02-27 16:57 [gentoo-commits] proj/livecd-tools:master commit in: init.d/ Ben Kohler
2021-07-29 4:05 Georgy Yakovlev
2021-02-25 23:12 Ben Kohler
2020-11-06 0:58 Matt Turner
2020-11-06 0:29 Matt Turner
2020-11-05 23:49 Matt Turner
2020-11-05 23:49 Matt Turner
2020-11-05 23:49 Matt Turner
2020-04-23 18:08 Rick Farina
2019-09-20 19:32 Matt Turner
2019-09-20 19:32 Matt Turner
2018-09-14 5:27 Matt Turner
2018-08-24 14:57 Richard Farina
2018-03-16 1:07 Richard Farina
2018-03-15 18:49 Richard Farina
2018-03-15 17:07 Richard Farina
2018-03-15 4:34 William Hubbs
2018-03-15 3:51 Richard Farina
2017-08-28 18:43 Richard Farina
2017-02-25 0:50 Robin H. Johnson
2016-07-09 4:27 William Hubbs
2015-12-11 17:53 William Hubbs
2015-12-11 17:53 William Hubbs
2015-11-01 20:44 Richard Farina
2014-05-22 16:30 Richard Farina
2013-07-05 21:55 William Hubbs
2013-07-05 21:46 William Hubbs
2013-01-03 18:20 William Hubbs
2012-10-03 14:17 William Hubbs
2011-10-25 2:37 William Hubbs
2011-09-19 1:41 Jorge Manuel B. S. Vicetto
2011-06-30 20:29 William Hubbs
2011-06-30 20:12 William Hubbs
2011-06-28 5:18 William Hubbs
2011-06-28 5:13 William Hubbs
2011-05-01 3:49 William Hubbs
2011-05-01 2:49 William Hubbs
2011-05-01 2:49 William Hubbs
2011-05-01 2:49 William Hubbs
2011-05-01 2:49 William Hubbs
2011-05-01 2:49 William Hubbs
2011-05-01 2:49 William Hubbs
2011-05-01 2:49 William Hubbs
2011-05-01 2:49 William Hubbs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f5a0172d4c65049d5bb86c770d5cb52b324d77e3.WilliamH@gentoo \
--to=williamh@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox