add getty service
This commit is contained in:
parent
2af02d079c
commit
d9cbee3dc3
3 changed files with 18 additions and 7 deletions
16
Makefile
16
Makefile
|
@ -18,7 +18,8 @@ CONF_FILES = \
|
|||
rc.shutdown
|
||||
|
||||
SERVICEDIR = boot.d \
|
||||
mount.d
|
||||
mount.d \
|
||||
getty.d
|
||||
|
||||
SERVICES = \
|
||||
binfmt \
|
||||
|
@ -76,6 +77,14 @@ SCRIPTS = \
|
|||
random-seed \
|
||||
vconsole
|
||||
|
||||
TTY_SERVICES = \
|
||||
tty1 \
|
||||
tty2 \
|
||||
tty3 \
|
||||
tty4 \
|
||||
tty5 \
|
||||
tty6
|
||||
|
||||
all:
|
||||
@echo "Nothing to be done here."
|
||||
|
||||
|
@ -89,6 +98,7 @@ install:
|
|||
install -d $(DESTDIR)$(DINITDIR)/scripts
|
||||
install -d $(DESTDIR)$(DINITDIR)/boot.d
|
||||
install -d $(DESTDIR)$(DINITDIR)/mount.d
|
||||
install -d $(DESTDIR)$(DINITDIR)/getty.d
|
||||
install -d $(DESTDIR)$(LOCALSTATEDIR)/log/dinit
|
||||
# placeholder
|
||||
touch $(DESTDIR)$(DINITDIR)/mount.d/.KEEP
|
||||
|
@ -113,5 +123,9 @@ install:
|
|||
for srv in $(SERVICES); do \
|
||||
install -m 644 services/$$srv $(DESTDIR)$(DINITDIR); \
|
||||
done
|
||||
# getty services
|
||||
for srv in $(TTY_SERVICES); do \
|
||||
ln -s ../$$srv $(DESTDIR)$(DINITDIR)/getty.d; \
|
||||
done
|
||||
# misc
|
||||
install -Dm644 misc/50-default.conf $(DESTDIR)$(LIBDIR)/sysctl.d/50-default.conf
|
||||
|
|
|
@ -2,12 +2,7 @@
|
|||
|
||||
type = internal
|
||||
|
||||
depends-ms = tty1
|
||||
depends-ms = tty2
|
||||
depends-ms = tty3
|
||||
depends-ms = tty4
|
||||
depends-ms = tty5
|
||||
depends-ms = tty6
|
||||
depends-ms = getty
|
||||
logfile = /var/log/dinit/boot.log
|
||||
|
||||
waits-for = rclocal
|
||||
|
|
2
services/getty
Normal file
2
services/getty
Normal file
|
@ -0,0 +1,2 @@
|
|||
type = internal
|
||||
waits-for.d = getty.d
|
Loading…
Reference in a new issue