From 9ed1237724d38c6ae26b15ea88afc628ad843e7a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 21 Aug 2014 20:01:08 +0200 Subject: [PATCH] inittab is obsoleted --- platforms/livecd-gnome-root/post.inc.sh | 15 --------------- platforms/livecd-light-root/post.inc.sh | 15 --------------- platforms/livecd-root/post.inc.sh | 15 --------------- platforms/livedvd-root/post.inc.sh | 15 --------------- platforms/livegames-root/post.inc.sh | 15 --------------- platforms/rootfs-light/post.inc.sh | 16 ---------------- platforms/rootfs/post.inc.sh | 16 ---------------- platforms/testcd-root/post.inc.sh | 15 --------------- 8 files changed, 122 deletions(-) diff --git a/platforms/livecd-gnome-root/post.inc.sh b/platforms/livecd-gnome-root/post.inc.sh index 133454a..bb8edc3 100644 --- a/platforms/livecd-gnome-root/post.inc.sh +++ b/platforms/livecd-gnome-root/post.inc.sh @@ -1,18 +1,3 @@ -## don't activate some services -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap} -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd} -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet} - -# change inittab so it opens tty root shells instead of asking for login -# -echo "Forcing \`inittab' to open tty root shells with no login..." -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab - -# configure for runlevel 5 boot -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab - # configure GDM for autologin # cat > $MOUNTDIR/etc/gdm/custom.conf << _EOF diff --git a/platforms/livecd-light-root/post.inc.sh b/platforms/livecd-light-root/post.inc.sh index ceae829..0ddddca 100644 --- a/platforms/livecd-light-root/post.inc.sh +++ b/platforms/livecd-light-root/post.inc.sh @@ -1,18 +1,3 @@ -## don't activate some services -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap} -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd} -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet} - -# change inittab so it opens tty root shells instead of asking for login -# -echo "Forcing \`inittab' to open tty root shells with no login..." -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab - -# configure for runlevel 5 boot -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab - # configure LXDM for autologin # sed -i "s|# autologin.*|autologin=liveuser|" $MOUNTDIR/etc/lxdm/lxdm.conf diff --git a/platforms/livecd-root/post.inc.sh b/platforms/livecd-root/post.inc.sh index f7cd84b..906d95a 100644 --- a/platforms/livecd-root/post.inc.sh +++ b/platforms/livecd-root/post.inc.sh @@ -1,18 +1,3 @@ -## don't activate some services -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap} -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd} -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet} - -# change inittab so it opens tty root shells instead of asking for login -# -echo "Forcing \`inittab' to open tty root shells with no login..." -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab - -# configure for runlevel 5 boot -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab - # configure KDM for autologin # if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then diff --git a/platforms/livedvd-root/post.inc.sh b/platforms/livedvd-root/post.inc.sh index 639997c..db8e55a 100644 --- a/platforms/livedvd-root/post.inc.sh +++ b/platforms/livedvd-root/post.inc.sh @@ -1,18 +1,3 @@ -## don't activate some services -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap} -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd} -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet} - -# change inittab so it opens tty root shells instead of asking for login -# -echo "Forcing \`inittab' to open tty root shells with no login..." -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab - -# configure for runlevel 5 boot -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab - # configure KDM for autologin # if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then diff --git a/platforms/livegames-root/post.inc.sh b/platforms/livegames-root/post.inc.sh index f2b6920..922a047 100644 --- a/platforms/livegames-root/post.inc.sh +++ b/platforms/livegames-root/post.inc.sh @@ -1,18 +1,3 @@ -## don't activate some services -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap} -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd} -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet} - -# change inittab so it opens tty root shells instead of asking for login -# -echo "Forcing \`inittab' to open tty root shells with no login..." -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab - -# configure for runlevel 5 boot -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab - # configure KDM for autologin # if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then diff --git a/platforms/rootfs-light/post.inc.sh b/platforms/rootfs-light/post.inc.sh index 5603a2b..5e62e81 100644 --- a/platforms/rootfs-light/post.inc.sh +++ b/platforms/rootfs-light/post.inc.sh @@ -44,22 +44,6 @@ TSLIB_CALIBFILE=/etc/pointercal HOME=/root _EOF - -# change inittab so it opens tty root shells instead of asking for login -# -echo "Forcing \`inittab' to open tty root shells with no login..." -# configure for serial console login -#echo "s0:2345:respawn:/sbin/agetty -L -f /etc/issue 115200 tcc-uart0 vt100" >> $MOUNTDIR/etc/inittab -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab -sed -i 's,^4:.*,4:2345:respawn:/sbin/agetty ttyS0 115200,' $MOUNTDIR/etc/inittab -sed -i 's,^5:.*,5:2345:respawn:/sbin/agetty ttyGS0 115200,' $MOUNTDIR/etc/inittab -sed -i 's,^6:.*,6:2345:respawn:/sbin/agetty ttyAMA0 115200,' $MOUNTDIR/etc/inittab -#sed -i '/^[5-6]:.*/d' $MOUNTDIR/etc/inittab - -# configure for runlevel 5 boot -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab - # configure LXDM for autologin # sed -i "s|# autologin.*|autologin=liveuser|" $MOUNTDIR/etc/lxdm/lxdm.conf diff --git a/platforms/rootfs/post.inc.sh b/platforms/rootfs/post.inc.sh index 49b1ddd..d42c20b 100644 --- a/platforms/rootfs/post.inc.sh +++ b/platforms/rootfs/post.inc.sh @@ -34,9 +34,6 @@ #chkconfig --del portmap #" -## use system default language -#> $MOUNTDIR/etc/sysconfig/i18n - # configure touchscreen cat > $MOUNTDIR/etc/ts-calibrate.conf << _EOF TSLIB_CONFFILE=/etc/ts.conf @@ -47,19 +44,6 @@ TSLIB_CALIBFILE=/etc/pointercal HOME=/root _EOF -# change inittab so it opens tty root shells instead of asking for login -# -echo "Forcing \`inittab' to open tty root shells with no login..." -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab -sed -i 's,^4:.*,4:2345:respawn:/sbin/agetty ttyS0 115200,' $MOUNTDIR/etc/inittab -sed -i 's,^5:.*,5:2345:respawn:/sbin/agetty ttyGS0 115200,' $MOUNTDIR/etc/inittab -sed -i 's,^6:.*,6:2345:respawn:/sbin/agetty ttyAMA0 115200,' $MOUNTDIR/etc/inittab -#sed -i '/^[5-6]:.*/d' $MOUNTDIR/etc/inittab - -# configure for runlevel 5 boot -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab - # configure KDM for autologin # if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then diff --git a/platforms/testcd-root/post.inc.sh b/platforms/testcd-root/post.inc.sh index 739c961..8fb459d 100644 --- a/platforms/testcd-root/post.inc.sh +++ b/platforms/testcd-root/post.inc.sh @@ -1,18 +1,3 @@ -## don't activate some services -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap} -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd} -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet} - -# change inittab so it opens tty root shells instead of asking for login -# -echo "Forcing \`inittab' to open tty root shells with no login..." -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab - -# configure for runlevel 5 boot -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab - # configure KDM for autologin # if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then