feat: scheduling, usermode, shell

This commit is contained in:
2026-02-17 19:17:01 +01:00
parent 20fa8a9be2
commit 605fbcbe42
46 changed files with 2622 additions and 98 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
# mkramdisk.sh - Create a USTAR tar archive for the ZenithOS ramdisk
# Usage: ./scripts/mkramdisk.sh [input_dir] [output_path]
set -e
INPUT_DIR="${1:-programs/bin}"
OUTPUT_PATH="${2:-ramdisk.tar}"
if [ ! -d "$INPUT_DIR" ]; then
echo "mkramdisk: input directory '$INPUT_DIR' does not exist, creating empty ramdisk"
mkdir -p "$INPUT_DIR"
# Create a placeholder file so the tar isn't completely empty
echo "ZenithOS ramdisk" > "$INPUT_DIR/readme.txt"
fi
# Create USTAR tar archive
tar --format=ustar -cf "$OUTPUT_PATH" -C "$INPUT_DIR" .
echo "mkramdisk: created $OUTPUT_PATH from $INPUT_DIR ($(wc -c < "$OUTPUT_PATH") bytes)"
+7
View File
@@ -66,5 +66,12 @@ if command -v nmcli &>/dev/null; then
nmcli device set "$TAP" managed no 2>/dev/null || true
fi
# Configure DNS on the bridge so systemd-resolved keeps working
if command -v resolvectl &>/dev/null && [ -n "$GW" ]; then
resolvectl dns "$BRIDGE" "$GW" 2>/dev/null || true
resolvectl domain "$BRIDGE" '~.' 2>/dev/null || true
echo "Configured DNS on $BRIDGE via $GW"
fi
echo "Network bridge setup complete: $PHYS -> $BRIDGE <- $TAP"
ip -4 addr show dev "$BRIDGE" | head -3