Commit 9ed1237724d38c6ae26b15ea88afc628ad843e7a

Authored by Silvan Calarco
1 parent 02c2e2ecbc
Exists in master

inittab is obsoleted

Showing 8 changed files with 0 additions and 122 deletions Side-by-side Diff

platforms/livecd-gnome-root/post.inc.sh
1   -## don't activate some services
2   -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap}
3   -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd}
4   -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet}
5   -
6   -# change inittab so it opens tty root shells instead of asking for login
7   -#
8   -echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab
10   -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab
11   -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
12   -
13   -# configure for runlevel 5 boot
14   -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab
15   -
16 1 # configure GDM for autologin
17 2 #
18 3 cat > $MOUNTDIR/etc/gdm/custom.conf << _EOF
platforms/livecd-light-root/post.inc.sh
1   -## don't activate some services
2   -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap}
3   -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd}
4   -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet}
5   -
6   -# change inittab so it opens tty root shells instead of asking for login
7   -#
8   -echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab
10   -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab
11   -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
12   -
13   -# configure for runlevel 5 boot
14   -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab
15   -
16 1 # configure LXDM for autologin
17 2 #
18 3 sed -i "s|# autologin.*|autologin=liveuser|" $MOUNTDIR/etc/lxdm/lxdm.conf
platforms/livecd-root/post.inc.sh
1   -## don't activate some services
2   -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap}
3   -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd}
4   -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet}
5   -
6   -# change inittab so it opens tty root shells instead of asking for login
7   -#
8   -echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab
10   -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab
11   -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
12   -
13   -# configure for runlevel 5 boot
14   -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab
15   -
16 1 # configure KDM for autologin
17 2 #
18 3 if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then
platforms/livedvd-root/post.inc.sh
1   -## don't activate some services
2   -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap}
3   -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd}
4   -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet}
5   -
6   -# change inittab so it opens tty root shells instead of asking for login
7   -#
8   -echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab
10   -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab
11   -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
12   -
13   -# configure for runlevel 5 boot
14   -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab
15   -
16 1 # configure KDM for autologin
17 2 #
18 3 if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then
platforms/livegames-root/post.inc.sh
1   -## don't activate some services
2   -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap}
3   -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd}
4   -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet}
5   -
6   -# change inittab so it opens tty root shells instead of asking for login
7   -#
8   -echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab
10   -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab
11   -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
12   -
13   -# configure for runlevel 5 boot
14   -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab
15   -
16 1 # configure KDM for autologin
17 2 #
18 3 if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then
platforms/rootfs-light/post.inc.sh
... ... @@ -44,22 +44,6 @@
44 44 HOME=/root
45 45 _EOF
46 46  
47   -
48   -# change inittab so it opens tty root shells instead of asking for login
49   -#
50   -echo "Forcing \`inittab' to open tty root shells with no login..."
51   -# configure for serial console login
52   -#echo "s0:2345:respawn:/sbin/agetty -L -f /etc/issue 115200 tcc-uart0 vt100" >> $MOUNTDIR/etc/inittab
53   -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab
54   -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab
55   -sed -i 's,^4:.*,4:2345:respawn:/sbin/agetty ttyS0 115200,' $MOUNTDIR/etc/inittab
56   -sed -i 's,^5:.*,5:2345:respawn:/sbin/agetty ttyGS0 115200,' $MOUNTDIR/etc/inittab
57   -sed -i 's,^6:.*,6:2345:respawn:/sbin/agetty ttyAMA0 115200,' $MOUNTDIR/etc/inittab
58   -#sed -i '/^[5-6]:.*/d' $MOUNTDIR/etc/inittab
59   -
60   -# configure for runlevel 5 boot
61   -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab
62   -
63 47 # configure LXDM for autologin
64 48 #
65 49 sed -i "s|# autologin.*|autologin=liveuser|" $MOUNTDIR/etc/lxdm/lxdm.conf
platforms/rootfs/post.inc.sh
... ... @@ -34,9 +34,6 @@
34 34 #chkconfig --del portmap
35 35 #"
36 36  
37   -## use system default language
38   -#> $MOUNTDIR/etc/sysconfig/i18n
39   -
40 37 # configure touchscreen
41 38 cat > $MOUNTDIR/etc/ts-calibrate.conf << _EOF
42 39 TSLIB_CONFFILE=/etc/ts.conf
... ... @@ -46,19 +43,6 @@
46 43 TSLIB_CALIBFILE=/etc/pointercal
47 44 HOME=/root
48 45 _EOF
49   -
50   -# change inittab so it opens tty root shells instead of asking for login
51   -#
52   -echo "Forcing \`inittab' to open tty root shells with no login..."
53   -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab
54   -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab
55   -sed -i 's,^4:.*,4:2345:respawn:/sbin/agetty ttyS0 115200,' $MOUNTDIR/etc/inittab
56   -sed -i 's,^5:.*,5:2345:respawn:/sbin/agetty ttyGS0 115200,' $MOUNTDIR/etc/inittab
57   -sed -i 's,^6:.*,6:2345:respawn:/sbin/agetty ttyAMA0 115200,' $MOUNTDIR/etc/inittab
58   -#sed -i '/^[5-6]:.*/d' $MOUNTDIR/etc/inittab
59   -
60   -# configure for runlevel 5 boot
61   -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab
62 46  
63 47 # configure KDM for autologin
64 48 #
platforms/testcd-root/post.inc.sh
1   -## don't activate some services
2   -#rm -f $MOUNTDIR/etc/rcsysinit.d/{S35hdparm,S30loadmodules,S40swap}
3   -#rm -f $MOUNTDIR/etc/rc*.d/{S12random,S13sysinit,S20network,S44acpid,S55sshd}
4   -#rm -f $MOUNTDIR/etc/rc*.d/{K00splash,K01acpid,K90random,K96swap,K97network,K97udev,K98localnet}
5   -
6   -# change inittab so it opens tty root shells instead of asking for login
7   -#
8   -echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty1,' $MOUNTDIR/etc/inittab
10   -sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginpause --noclear tty\1,' $MOUNTDIR/etc/inittab
11   -sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
12   -
13   -# configure for runlevel 5 boot
14   -sed -i "s|id:3\(:initdefault.*\)|id:5\1|" $MOUNTDIR/etc/inittab
15   -
16 1 # configure KDM for autologin
17 2 #
18 3 if [ -e $MOUNTDIR/opt/kde/share/config/kdm/kdmrc ]; then