4ff71bd741
Now that the tmpfiles.d code is more tested, actually call it from init.d. It assumes that /run is already available when it runs. Please note it runs TWICE. - During sysinit, ideally just after /dev/shm is created, but before udev has started. After udev is also acceptable, but not ideal. - During boot, ideally just after localmount has completed. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
26 lines
513 B
Makefile
26 lines
513 B
Makefile
DIR= ${CONFDIR}
|
|
CONF= bootmisc fsck hostname localmount urandom tmpfilesd ${CONF-${OS}}
|
|
|
|
ifeq (${MKNET},)
|
|
CONF+= network staticroute
|
|
TARGETS+= network staticroute
|
|
CLEANFILES+= network staticroute
|
|
endif
|
|
|
|
MK= ../mk
|
|
include ${MK}/os.mk
|
|
|
|
CONF-FreeBSD= ipfw moused powerd rarpd savecore syscons
|
|
|
|
CONF-Linux= consolefont dmesg hwclock keymaps killprocs modules
|
|
|
|
CONF-NetBSD= moused rarpd savecore
|
|
|
|
include ${MK}/scripts.mk
|
|
|
|
network: network.in network${SFX}
|
|
cat $^ > $@
|
|
|
|
staticroute: staticroute${SFX}
|
|
cp $@${SFX} $@
|