global command
This commit is contained in:
15
layer/etc/init.d/dkl-boot
Executable file
15
layer/etc/init.d/dkl-boot
Executable file
@ -0,0 +1,15 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="Direktil boot operations."
|
||||
|
||||
depend()
|
||||
{
|
||||
provide net
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
ebegin "Running Direktil boot operations"
|
||||
/sbin/dkl init boot
|
||||
eend $? "Direktil boot operations failed"
|
||||
}
|
16
layer/etc/init.d/dkl-default
Executable file
16
layer/etc/init.d/dkl-default
Executable file
@ -0,0 +1,16 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="Direktil default operations."
|
||||
|
||||
depend()
|
||||
{
|
||||
# need anything?
|
||||
:
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
ebegin "Running Direktil default operations"
|
||||
/sbin/dkl init default
|
||||
eend $? "Direktil default operations failed"
|
||||
}
|
30
layer/etc/init.d/dkl-user-services
Executable file
30
layer/etc/init.d/dkl-user-services
Executable file
@ -0,0 +1,30 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
description="Direktil user services."
|
||||
|
||||
pidfile=/run/direktil/services.pid
|
||||
|
||||
depend()
|
||||
{
|
||||
need dkl-default
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
mkdir -p $(dirname $pidfile)
|
||||
|
||||
einfo "Starting Direktil services manager"
|
||||
start-stop-daemon --start \
|
||||
--pidfile $pidfile \
|
||||
--background \
|
||||
--exec "/sbin/dkl" \
|
||||
-- init services
|
||||
eend $? "Failed to start Direktil services manager"
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
einfo "Stopping Direktil services manager"
|
||||
start-stop-daemon --stop --pidfile $pidfile
|
||||
eend $? "Failed to stop Direktil services manager"
|
||||
}
|
54
layer/etc/inittab
Normal file
54
layer/etc/inittab
Normal file
@ -0,0 +1,54 @@
|
||||
#
|
||||
# /etc/inittab: This file describes how the INIT process should set up
|
||||
# the system in a certain run-level.
|
||||
#
|
||||
# Author: Miquel van Smoorenburg, <miquels@cistron.nl>
|
||||
# Modified by: Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
|
||||
# Modified by: Daniel Robbins, <drobbins@gentoo.org>
|
||||
# Modified by: Martin Schlemmer, <azarah@gentoo.org>
|
||||
# Modified by: Mike Frysinger, <vapier@gentoo.org>
|
||||
# Modified by: Robin H. Johnson, <robbat2@gentoo.org>
|
||||
# Modified by: William Hubbs, <williamh@gentoo.org>
|
||||
#
|
||||
|
||||
# Default runlevel.
|
||||
id:3:initdefault:
|
||||
|
||||
# System initialization, mount local filesystems, etc.
|
||||
si::sysinit:/sbin/openrc sysinit
|
||||
|
||||
# Further system initialization, brings up the boot runlevel.
|
||||
rc::bootwait:/sbin/openrc boot
|
||||
|
||||
l0u:0:wait:/sbin/telinit u
|
||||
l0:0:wait:/sbin/openrc shutdown
|
||||
l0s:0:wait:/sbin/halt -dhnp
|
||||
l1:1:wait:/sbin/openrc single
|
||||
l2:2:wait:/sbin/openrc nonetwork
|
||||
l3:3:wait:/sbin/openrc default
|
||||
l4:4:wait:/sbin/openrc default
|
||||
l5:5:wait:/sbin/openrc default
|
||||
l6u:6:wait:/sbin/telinit u
|
||||
l6:6:wait:/sbin/openrc reboot
|
||||
l6r:6:wait:/sbin/reboot -dkn
|
||||
#z6:6:respawn:/sbin/sulogin
|
||||
|
||||
# new-style single-user
|
||||
su0:S:wait:/sbin/openrc single
|
||||
su1:S:wait:/sbin/sulogin
|
||||
|
||||
# TERMINALS
|
||||
#x1:12345:respawn:/sbin/agetty 38400 console linux
|
||||
c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
|
||||
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
|
||||
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
|
||||
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
|
||||
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
|
||||
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
|
||||
|
||||
# SERIAL CONSOLES
|
||||
s0:12345:respawn:/sbin/agetty --noclear -L 115200 ttyS0 vt100
|
||||
#s1:12345:respawn:/sbin/agetty -L 115200 ttyS1 vt100
|
||||
|
||||
# What to do at the "Three Finger Salute".
|
||||
ca:12345:ctrlaltdel:/sbin/shutdown -r now
|
1
layer/etc/runlevels/boot/dkl-boot
Symbolic link
1
layer/etc/runlevels/boot/dkl-boot
Symbolic link
@ -0,0 +1 @@
|
||||
../../init.d/dkl-boot
|
1
layer/etc/runlevels/default/dkl-default
Symbolic link
1
layer/etc/runlevels/default/dkl-default
Symbolic link
@ -0,0 +1 @@
|
||||
../../init.d/dkl-default
|
1
layer/etc/runlevels/default/dkl-user-services
Symbolic link
1
layer/etc/runlevels/default/dkl-user-services
Symbolic link
@ -0,0 +1 @@
|
||||
../../init.d/dkl-user-services
|
Reference in New Issue
Block a user