From 462262557012ddc96a151565f8d148b3d9f5bb2c Mon Sep 17 00:00:00 2001 From: Nulo Date: Thu, 17 Nov 2022 22:28:32 -0300 Subject: [PATCH] runit: poweroff/reboot scripts --- modules/runit.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/runit.lua b/modules/runit.lua index ea8231b..08107bd 100644 --- a/modules/runit.lua +++ b/modules/runit.lua @@ -362,6 +362,12 @@ if [ -z "$VIRTUALIZATION" ]; then fi ]]) +-- https://wiki.gentoo.org/wiki/Runit#Reboot_and_shutdown +add_executable("/usr/local/sbin/rpoweroff", [[#!/bin/sh +runit-init 0]]) +add_executable("/usr/local/sbin/rreboot", [[#!/bin/sh +runit-init 6]]) + add_packages({ "runit", "eudev" }) modules.runit.add_service("getty-tty1", [[#!/bin/sh exec chpst -P getty 38400 tty1 linux]], false)