From beac4379c2c5acf58fcdd4713aeaae151efd21a1 Mon Sep 17 00:00:00 2001 From: Clay Gomera Date: Fri, 29 Mar 2024 01:38:17 -0400 Subject: [PATCH] Added system config files --- config/etc/bash.bash_logout | 6 ++++++ config/etc/dracut.conf | 4 ++++ config/etc/issue | 14 ++++++++++++++ config/etc/sv/runsvdir-drk/run | 14 ++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 config/etc/bash.bash_logout create mode 100644 config/etc/dracut.conf create mode 100644 config/etc/issue create mode 100755 config/etc/sv/runsvdir-drk/run diff --git a/config/etc/bash.bash_logout b/config/etc/bash.bash_logout new file mode 100644 index 000000000..5aad3995d --- /dev/null +++ b/config/etc/bash.bash_logout @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# ~/.bash_logout: executed by bash(1) when login shell exits. + +if [ "$SHLVL" = 1 ]; then + [ -x /usr/bin/clear ] && /usr/bin/clear -q +fi diff --git a/config/etc/dracut.conf b/config/etc/dracut.conf new file mode 100644 index 000000000..76d652c7b --- /dev/null +++ b/config/etc/dracut.conf @@ -0,0 +1,4 @@ +# PUT YOUR CONFIG IN separate files +# in /etc/dracut.conf.d named ".conf" +# SEE man dracut.conf(5) for options +add_drivers+=" i915 " diff --git a/config/etc/issue b/config/etc/issue new file mode 100644 index 000000000..7dd60c086 --- /dev/null +++ b/config/etc/issue @@ -0,0 +1,14 @@ + +\e[H\e[2J +\e[0;32m + _______ + \\_____ `- ____ ____ .__ .___ .____ .__ + /\\ ___ `- \\ \\ \\ / /___ |__| __| _/ | | |__| ____ __ _____ ___ + | | / \\ | | \\ Y / _ \\| |/ __ | | | | |/ \\| | \\ \\/ / + | | \\___/ | | \\ ( <_> ) / /_/ | | |___| | | \\ | /> < + \\ `-_____ \\/ \\___/ \\____/|__\\____ | |_______ \\__|___| /____//__/\\_ \\ + `-______\\ \\/ \\/ \\/ \\/ + +\e[0m +Welcome Back! Linux Version: \r (\n) (\l) + diff --git a/config/etc/sv/runsvdir-drk/run b/config/etc/sv/runsvdir-drk/run new file mode 100755 index 000000000..ffd45de53 --- /dev/null +++ b/config/etc/sv/runsvdir-drk/run @@ -0,0 +1,14 @@ +#!/bin/sh + +export USER="drk" +export HOME="/home/$USER" +export XDG_RUNTIME_DIR="/run/user/$(id -u $USER)" +mkdir $XDG_RUNTIME_DIR +chown $USER:$USER $XDG_RUNTIME_DIR + +groups="$(id -Gn "$USER" | tr ' ' ':')" +svdir="$HOME/.config/services" +mkdir -p "$svdir" +chown $USER:$USER "$svdir" + +exec chpst -u "$USER:$groups" runsvdir "$svdir"