From 53a09fa9d57bad1b074d0f72a302ffc4517d4b0f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 7 Aug 2014 17:22:57 +0200 Subject: Added "core" services that are run from scripts on stage 1. - /etc/runit/functions: contains common functions to be used in core-services. - /etc/runit/core-services: directory containing one-time tasks run in stage 1. - Added LXC container detection to disable some core services. This accidentally also fixes the issue of unicode not working in the active TTY from stage 1. --- core-services/99-cleanup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 core-services/99-cleanup.sh (limited to 'core-services/99-cleanup.sh') diff --git a/core-services/99-cleanup.sh b/core-services/99-cleanup.sh new file mode 100755 index 0000000..8030b4f --- /dev/null +++ b/core-services/99-cleanup.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# vim: set ts=4 sw=4 et: + +. /etc/runit/functions +[ -r /etc/rc.conf ] && . /etc/rc.conf + +install -m0664 -o root -g utmp /dev/null /run/utmp +install -dm1777 /tmp/.X11-unix /tmp/.ICE-unix +rm -f /etc/nologin /forcefsck /forcequotacheck /fastboot -- cgit 1.4.1