From a5f8693fd87f6dc0ce99771eb1bcb4503d7c11e9 Mon Sep 17 00:00:00 2001 From: Vasilito Date: Tue, 14 Apr 2026 11:43:37 +0100 Subject: [PATCH] Add shared Red Bear profile config fragments Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- config/redbear-device-services.toml | 45 +++++++++++++++++++++++++ config/redbear-legacy-base.toml | 13 ++++++++ config/redbear-legacy-desktop.toml | 9 +++++ config/redbear-netctl.toml | 52 +++++++++++++++++++++++++++++ 4 files changed, 119 insertions(+) create mode 100644 config/redbear-device-services.toml create mode 100644 config/redbear-legacy-base.toml create mode 100644 config/redbear-legacy-desktop.toml create mode 100644 config/redbear-netctl.toml diff --git a/config/redbear-device-services.toml b/config/redbear-device-services.toml new file mode 100644 index 00000000..861fd203 --- /dev/null +++ b/config/redbear-device-services.toml @@ -0,0 +1,45 @@ +# Red Bear OS shared device-service wiring +# +# Shared by profiles that ship the firmware/input compatibility stack. + +[[files]] +path = "/usr/lib/init.d/05_firmware-loader.service" +data = """ +[unit] +description = "Firmware loading scheme" +requires_weak = [ + "00_pcid-spawner.service", +] + +[service] +cmd = "firmware-loader" +type = { scheme = "firmware" } +""" + +[[files]] +path = "/usr/lib/init.d/11_udev.service" +data = """ +[unit] +description = "udev compatibility shim" +requires_weak = [ + "00_pcid-spawner.service", +] + +[service] +cmd = "udev-shim" +type = { scheme = "udev" } +""" + +[[files]] +path = "/usr/lib/init.d/10_evdevd.service" +data = """ +[unit] +description = "Evdev input daemon" +requires_weak = [ + "00_pcid-spawner.service", +] + +[service] +cmd = "evdevd" +type = "oneshot_async" +""" diff --git a/config/redbear-legacy-base.toml b/config/redbear-legacy-base.toml new file mode 100644 index 00000000..e75d147f --- /dev/null +++ b/config/redbear-legacy-base.toml @@ -0,0 +1,13 @@ +# Red Bear OS overrides for broken legacy base init scripts. + +[[files]] +path = "/usr/lib/init.d/00_base" +data = "" + +[[files]] +path = "/usr/lib/init.d/00_drivers" +data = "" + +[[files]] +path = "/usr/lib/init.d/10_net" +data = "" diff --git a/config/redbear-legacy-desktop.toml b/config/redbear-legacy-desktop.toml new file mode 100644 index 00000000..8a42ad68 --- /dev/null +++ b/config/redbear-legacy-desktop.toml @@ -0,0 +1,9 @@ +# Red Bear OS overrides for broken legacy desktop init scripts. + +[[files]] +path = "/usr/lib/init.d/20_orbital" +data = "" + +[[files]] +path = "/usr/lib/init.d/30_console" +data = "" diff --git a/config/redbear-netctl.toml b/config/redbear-netctl.toml new file mode 100644 index 00000000..f576f04a --- /dev/null +++ b/config/redbear-netctl.toml @@ -0,0 +1,52 @@ +# Red Bear OS shared network profile wiring +# +# Shared by redbear-minimal, redbear-desktop, redbear-full, and redbear-kde. + +[[files]] +path = "/etc/netctl" +data = "" +directory = true +mode = 0o755 + +[[files]] +path = "/etc/netctl/examples" +data = "" +directory = true +mode = 0o755 + +[[files]] +path = "/etc/netctl/examples/wired-dhcp" +data = """ +Description='Red Bear wired DHCP profile' +Interface=eth0 +Connection=ethernet +IP=dhcp +""" + +[[files]] +path = "/etc/netctl/examples/wired-static" +data = """ +Description='Red Bear wired static profile' +Interface=eth0 +Connection=ethernet +IP=static +Address=('192.168.1.10/24') +Gateway='192.168.1.1' +DNS=('1.1.1.1') +""" + +[[files]] +path = "/usr/lib/init.d/12_netctl.service" +data = """ +[unit] +description = "Network profile application" +requires_weak = [ + "10_smolnetd.service", + "10_dhcpd.service", +] + +[service] +cmd = "netctl" +args = ["--boot"] +type = "oneshot" +"""