diff options
| author | nippy <you@example.com> | 2026-04-12 18:11:38 +0200 |
|---|---|---|
| committer | nippy <you@example.com> | 2026-04-12 18:11:38 +0200 |
| commit | 89d442a74ab0b3fc49f838c15f3f722f1be74720 (patch) | |
| tree | 97c021670032230f020c2b45e6cd2aabd3dc1a00 /releng/airootfs/root | |
| parent | 71d4e0832da17f0ba97b7a5db86c6bf45be4e894 (diff) | |
| download | RaveOS-build-iso-89d442a74ab0b3fc49f838c15f3f722f1be74720.tar.gz RaveOS-build-iso-89d442a74ab0b3fc49f838c15f3f722f1be74720.zip | |
live
Diffstat (limited to 'releng/airootfs/root')
| -rwxr-xr-x | releng/airootfs/root/.automated_script.sh | 44 | ||||
| -rwxr-xr-x | releng/airootfs/root/.config/openbox/autostart | 8 | ||||
| -rw-r--r-- | releng/airootfs/root/.config/openbox/menu.xml | 22 | ||||
| -rw-r--r-- | releng/airootfs/root/.config/openbox/rc.xml | 46 | ||||
| -rw-r--r-- | releng/airootfs/root/.gnupg/scdaemon.conf | 4 | ||||
| -rwxr-xr-x | releng/airootfs/root/.loader.conf | 4 | ||||
| -rw-r--r-- | releng/airootfs/root/.xinitrc | 1 | ||||
| -rw-r--r-- | releng/airootfs/root/.zlogin | 6 |
8 files changed, 135 insertions, 0 deletions
diff --git a/releng/airootfs/root/.automated_script.sh b/releng/airootfs/root/.automated_script.sh new file mode 100755 index 0000000..f7f3ced --- /dev/null +++ b/releng/airootfs/root/.automated_script.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash + +script_cmdline() { + local param + for param in $(</proc/cmdline); do + case "${param}" in + script=*) + echo "${param#*=}" + return 0 + ;; + esac + done +} + +automated_script() { + local script rt + script="$(script_cmdline)" + if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then + if [[ "${script}" =~ ^((http|https|ftp|tftp)://) ]]; then + # there's no synchronization for network availability before executing this script + printf '%s: waiting for network-online.target\n' "$0" + until systemctl --quiet is-active network-online.target; do + sleep 1 + done + printf '%s: downloading %s\n' "$0" "${script}" + curl "${script}" --location --retry-connrefused --retry 10 --fail -s -o /tmp/startup_script + rt=$? + else + cp "${script}" /tmp/startup_script + rt=$? + fi + if [[ ${rt} -eq 0 ]]; then + chmod +x /tmp/startup_script + printf '%s: executing automated script\n' "$0" + # note that script is executed when other services (like pacman-init) may be still in progress, please + # synchronize to "systemctl is-system-running --wait" when your script depends on other services + /tmp/startup_script + fi + fi +} + +if [[ $(tty) == "/dev/tty1" ]]; then + automated_script +fi diff --git a/releng/airootfs/root/.config/openbox/autostart b/releng/airootfs/root/.config/openbox/autostart new file mode 100755 index 0000000..b1180b2 --- /dev/null +++ b/releng/airootfs/root/.config/openbox/autostart @@ -0,0 +1,8 @@ +#!/bin/sh + +xset s off +xset -dpms +xset s noblank + +# Launch Calamares fullscreen +calamares & diff --git a/releng/airootfs/root/.config/openbox/menu.xml b/releng/airootfs/root/.config/openbox/menu.xml new file mode 100644 index 0000000..53c742e --- /dev/null +++ b/releng/airootfs/root/.config/openbox/menu.xml @@ -0,0 +1,22 @@ + +<?xml version="1.0" encoding="UTF-8"?> +<openbox_menu> + <menu id="root-menu" label="Openbox"> + <item label="Terminal"> + <action name="Execute"> + <command>xterm</command> + </action> + </item> + <item label="Installer"> + <action name="Execute"> + <command>calamares</command> + </action> + </item> + <separator/> + <item label="Reboot"> + <action name="Execute"> + <command>systemctl reboot</command> + </action> + </item> + </menu> +</openbox_menu> diff --git a/releng/airootfs/root/.config/openbox/rc.xml b/releng/airootfs/root/.config/openbox/rc.xml new file mode 100644 index 0000000..6fb7896 --- /dev/null +++ b/releng/airootfs/root/.config/openbox/rc.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<openbox_config> + <theme> + <name>Clearlooks</name> + + <font place="ActiveWindow"> + <name>Noto Sans</name> + <size>10</size> + <weight>Bold</weight> + <slant>Normal</slant> + </font> + + <font place="InactiveWindow"> + <name>Noto Sans</name> + <size>10</size> + <weight>Normal</weight> + <slant>Normal</slant> + </font> + + <font place="MenuHeader"> + <name>Noto Sans</name> + <size>10</size> + <weight>Bold</weight> + <slant>Normal</slant> + </font> + + <font place="MenuItem"> + <name>Noto Sans</name> + <size>10</size> + <weight>Normal</weight> + <slant>Normal</slant> + </font> + + <font place="OnScreenDisplay"> + <name>Noto Sans</name> + <size>10</size> + <weight>Normal</weight> + <slant>Normal</slant> + </font> + </theme> +<applications> + <application class="*"> + <decor>no</decor> + </application> +</applications> +</openbox_config>
\ No newline at end of file diff --git a/releng/airootfs/root/.gnupg/scdaemon.conf b/releng/airootfs/root/.gnupg/scdaemon.conf new file mode 100644 index 0000000..e1f3d1f --- /dev/null +++ b/releng/airootfs/root/.gnupg/scdaemon.conf @@ -0,0 +1,4 @@ +disable-ccid +disable-pinpad +pcsc-driver /usr/lib/libpcsclite.so +pcsc-shared diff --git a/releng/airootfs/root/.loader.conf b/releng/airootfs/root/.loader.conf new file mode 100755 index 0000000..0ca44c8 --- /dev/null +++ b/releng/airootfs/root/.loader.conf @@ -0,0 +1,4 @@ +default raveos.conf +timeout 3 +editor no + diff --git a/releng/airootfs/root/.xinitrc b/releng/airootfs/root/.xinitrc new file mode 100644 index 0000000..2c21291 --- /dev/null +++ b/releng/airootfs/root/.xinitrc @@ -0,0 +1 @@ +exec openbox-session diff --git a/releng/airootfs/root/.zlogin b/releng/airootfs/root/.zlogin new file mode 100644 index 0000000..bf6bc8f --- /dev/null +++ b/releng/airootfs/root/.zlogin @@ -0,0 +1,6 @@ +# fix for screen readers +if grep -Fqa 'accessibility=' /proc/cmdline &> /dev/null; then + setopt SINGLE_LINE_ZLE +fi + +~/.automated_script.sh |