* [gentoo-commits] proj/livecd-tools:master commit in: init.d/, /
@ 2012-10-10 20:52 William Hubbs
0 siblings, 0 replies; only message in thread
From: William Hubbs @ 2012-10-10 20:52 UTC (permalink / raw
To: gentoo-commits
commit: 89e2c85b20e87394a546410408ab13f40fc3d28e
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 10 20:36:11 2012 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Oct 10 20:49:08 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/livecd-tools.git;a=commit;h=89e2c85b
use agetty's autologin function instead of bashlogin
X-Gentoo-Bug: 392685
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=392685
---
bashlogin | 7 -------
init.d/fixinittab | 10 +++++-----
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/bashlogin b/bashlogin
deleted file mode 100755
index ea9493a..0000000
--- a/bashlogin
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-export HOME=/root
-cat /etc/motd 2>/dev/null
-cd /root
-[[ -e .bash_profile ]] && source .bash_profile
-exec -l /bin/bash -i
diff --git a/init.d/fixinittab b/init.d/fixinittab
index 36bdc27..c485637 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 -a 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 -a 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" ]
@@ -64,7 +64,7 @@ start()
then
eindent
ebegin "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 -a root 9600 hvc0 vt320" >> /etc/inittab
eend $?
eoutdent
fi
@@ -80,7 +80,7 @@ start()
else
eindent
ebegin "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 -a root ${LIVECD_CONSOLE_BAUD} ${LIVECD_CONSOLE} vt100" >> /etc/inittab
eend $?
eoutdent
fi
@@ -97,7 +97,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 -a root ${speed} ${line} vt100" >> /etc/inittab
done
fi
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-10 20:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-10 20:52 [gentoo-commits] proj/livecd-tools:master commit in: init.d/, / William Hubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox