The following changes were made:

* Removed creation of /etc/inittab from usher
  * Added default inittab (installed with usher) in /usr/share/sysvinit
This commit is contained in:
2017-05-17 10:40:29 -05:00
parent 3fdf2a54e6
commit f187836707
3 changed files with 48 additions and 21 deletions

View File

@@ -2,24 +2,6 @@
set -e
INITTAB="id:3:initdefault:
si::sysinit:/etc/init.d/rc S
l0:0:wait:/etc/init.d/rc 0
l1:S1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
su:S016:once:/sbin/sulogin
1:2345:respawn:/sbin/agetty --noclear tty1 38400
2:2345:respawn:/sbin/agetty tty2 38400
3:2345:respawn:/sbin/agetty tty3 38400
4:2345:respawn:/sbin/agetty tty4 38400
5:2345:respawn:/sbin/agetty tty5 38400
6:2345:respawn:/sbin/agetty tty6 38400"
case $1 in
preinst)
exit 0
@@ -29,7 +11,7 @@ case $1 in
install -d -m 755 ${TARGET}/etc/rc{[0-6],S}.d
if [ ! -f ${TARGET}/etc/inittab ]; then
echo "${INITTAB}" > ${TARGET}/etc/inittab
install -m 644 /usr/share/sysvinit/inittab /etc/inittab
fi
;;
prerm)