OpenRC: add /etc/inittab and handle it. Bump revision.
--HG-- extra : convert_revision : 6d949af3936b7926333770471b7eeea6903b815d
This commit is contained in:
parent
382cdc31f5
commit
b0a3d638b8
2 changed files with 43 additions and 1 deletions
34
templates/OpenRC/files/inittab
Normal file
34
templates/OpenRC/files/inittab
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# /etc/inittab: This file describes how the INIT process should set up
|
||||||
|
# the system in a certain run-level.
|
||||||
|
|
||||||
|
# Default runlevel.
|
||||||
|
id:3:initdefault:
|
||||||
|
|
||||||
|
# System initialization, mount local filesystems, etc.
|
||||||
|
si::sysinit:/sbin/rc sysinit
|
||||||
|
|
||||||
|
# Further system initialization, brings up the boot runlevel.
|
||||||
|
rc::bootwait:/sbin/rc boot
|
||||||
|
|
||||||
|
l0:0:wait:/sbin/rc shutdown
|
||||||
|
l1:S1:wait:/sbin/rc single
|
||||||
|
l2:2:wait:/sbin/rc nonetwork
|
||||||
|
l3:3:wait:/sbin/rc default
|
||||||
|
l4:4:wait:/sbin/rc default
|
||||||
|
l5:5:wait:/sbin/rc default
|
||||||
|
l6:6:wait:/sbin/rc reboot
|
||||||
|
|
||||||
|
# TERMINALS
|
||||||
|
c1:12345:respawn:/sbin/agetty -8 38400 tty1 linux
|
||||||
|
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
|
||||||
|
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
|
||||||
|
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
|
||||||
|
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
|
||||||
|
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
|
||||||
|
|
||||||
|
# SERIAL CONSOLES
|
||||||
|
#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
|
||||||
|
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
|
||||||
|
|
||||||
|
# What to do at the "Three Finger Salute".
|
||||||
|
ca:12345:ctrlaltdel:/sbin/shutdown -r now
|
|
@ -2,6 +2,7 @@
|
||||||
pkgname=OpenRC
|
pkgname=OpenRC
|
||||||
version=20090430
|
version=20090430
|
||||||
wrksrc=openrc
|
wrksrc=openrc
|
||||||
|
revision=1
|
||||||
patch_files="xbps-changes.diff"
|
patch_files="xbps-changes.diff"
|
||||||
distfiles="http://ftp.gnu.org/gnu/openrc/openrc-$version.tar.bz2"
|
distfiles="http://ftp.gnu.org/gnu/openrc/openrc-$version.tar.bz2"
|
||||||
build_style=gnu_makefile
|
build_style=gnu_makefile
|
||||||
|
@ -19,10 +20,12 @@ long_desc="
|
||||||
conf_files="/etc/rc.conf /etc/conf.d/bootmisc /etc/conf.d/consolefont
|
conf_files="/etc/rc.conf /etc/conf.d/bootmisc /etc/conf.d/consolefont
|
||||||
/etc/conf.d/dmesg /etc/conf.d/fsck /etc/conf.d/hostname /etc/conf.d/hwclock
|
/etc/conf.d/dmesg /etc/conf.d/fsck /etc/conf.d/hostname /etc/conf.d/hwclock
|
||||||
/etc/conf.d/keymaps /etc/conf.d/local /etc/conf.d/localmount
|
/etc/conf.d/keymaps /etc/conf.d/local /etc/conf.d/localmount
|
||||||
/etc/conf.d/modules /etc/conf.d/network /etc/conf.d/urandom"
|
/etc/conf.d/modules /etc/conf.d/network /etc/conf.d/urandom
|
||||||
|
/etc/inittab"
|
||||||
|
|
||||||
Add_dependency full glibc
|
Add_dependency full glibc
|
||||||
Add_dependency full psmisc
|
Add_dependency full psmisc
|
||||||
|
Add_dependency full sysvinit
|
||||||
|
|
||||||
pre_configure()
|
pre_configure()
|
||||||
{
|
{
|
||||||
|
@ -35,3 +38,8 @@ pre_configure()
|
||||||
${wrksrc}/${f}
|
${wrksrc}/${f}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_install()
|
||||||
|
{
|
||||||
|
install -D -m755 ${FILESDIR}/inittab ${DESTDIR}/etc/inittab
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue