The following changes were made:

* moved directory creation to package itself instead of usher
  * moved inittab installation from usher to CONFIG
This commit is contained in:
2018-09-30 19:33:42 -05:00
parent c3b800bc9c
commit 1d78033ebe
3 changed files with 5 additions and 25 deletions

View File

@@ -1,43 +0,0 @@
# Default runlevel
id:3:initdefault:
# This is the set of scripts that prepare the system prior to entering runlevels
si::sysinit:/etc/init.d/rc S
# /etc/init.d/rc executes the S and K scripts when runlevel is changed
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevel 2 is multi-user without networking.
# Runlevel 3 is multi-user with networking.
# Runlevel 4 is not used by default.
# Runlevel 5 is multi-user with GUI.
# Runlevel 6 is reboot.
l0:0:wait:/etc/init.d/rc 0
l1:1: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
# This allows ctrl-alt-del to reboot the system
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
# Single user mode
su:S1:respawn:/sbin/sulogin
# The following spawns agetty on tty1-6
#
# Format:
# id:runlevels:action:process
#
# More information is available with 'man inittab'
1:2345:respawn:/sbin/agetty --noclear --nohints tty1 38400
2:2345:respawn:/sbin/agetty --nohints tty2 38400
3:2345:respawn:/sbin/agetty --nohints tty3 38400
4:2345:respawn:/sbin/agetty --nohints tty4 38400
5:2345:respawn:/sbin/agetty --nohints tty5 38400
6:2345:respawn:/sbin/agetty --nohints tty6 38400

View File

@@ -1,23 +0,0 @@
#!/bin/sh
set -e
case $1 in
preinst)
exit 0
;;
postinst)
install -d -m 755 /etc/init.d
install -d -m 755 /etc/rc{{0..6},S}.d
if [ ! -f /etc/inittab ]; then
install -m 644 /usr/share/sysvinit/inittab /etc/inittab
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac