diff options
-rw-r--r-- | mk/rootfs/openrc/openrc.mk | 7 | ||||
-rw-r--r-- | src/rootfs_skel/etc/inittab | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/mk/rootfs/openrc/openrc.mk b/mk/rootfs/openrc/openrc.mk index 7472306..bc2a80f 100644 --- a/mk/rootfs/openrc/openrc.mk +++ b/mk/rootfs/openrc/openrc.mk @@ -30,10 +30,16 @@ OPENRC_SRC_DIR := $(embtk_pkgb)/openrc-$(OPENRC_VERSION) OPENRC_BUILD_DIR := $(embtk_pkgb)/openrc-$(OPENRC_VERSION) embtk_openrc_mk := $(EMBTK_ROOT)/mk/rootfs/openrc + +# sysinit runlevel scripts embtk_openrc_sysinit := devfs dmesg sysfs +# boot runlevel scripts embtk_openrc_boot := hostname loopback modules mtab network procfs embtk_openrc_boot += root staticroute sysctl urandom +# defaultrunlevel scripts embtk_openrc_default := netmount +# shutdown runlevel scripts +embtk_openrc_shutdown := killprocs # Installed dir/files in sysroot OPENRC_ETC := conf.d init.d.misc init.d local.d rc.conf runlevels @@ -85,6 +91,7 @@ define embtk_postinstall_openrc $(call __embtk_install_openrc_runlevel,sysinit) $(call __embtk_install_openrc_runlevel,boot) $(call __embtk_install_openrc_runlevel,default) + $(call __embtk_install_openrc_runlevel,shutdown) endef define embtk_cleanup_openrc diff --git a/src/rootfs_skel/etc/inittab b/src/rootfs_skel/etc/inittab index a6ea291..47a5790 100644 --- a/src/rootfs_skel/etc/inittab +++ b/src/rootfs_skel/etc/inittab @@ -21,12 +21,11 @@ null::respawn:/sbin/syslogd -n -m 0 null::respawn:/sbin/klogd -n #tty3::respawn:/usr/bin/tail -f /var/log/messages -# Stuff to do for the 3-finger salute +# What to do at the "Three Finger Salute" ::ctrlaltdel:/sbin/reboot # Stuff to do before rebooting -null::shutdown:/usr/bin/killall klogd -null::shutdown:/usr/bin/killall syslogd +null::shutdown:/sbin/openrc shutdown null::shutdown:/bin/umount -a -r null::shutdown:/sbin/swapoff -a |