runit: poweroff/reboot scripts
This commit is contained in:
parent
88e9406963
commit
4622625570
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue