22 lines
543 B
Plaintext
22 lines
543 B
Plaintext
|
|
#!/bin/sh
|
||
|
|
# First boot hardware detection and optimization
|
||
|
|
|
||
|
|
HARDWARE_INFO="/etc/archipelago/hardware-info.sh"
|
||
|
|
|
||
|
|
if [ -x "$HARDWARE_INFO" ]; then
|
||
|
|
echo "🔍 Detecting hardware..."
|
||
|
|
$HARDWARE_INFO > /var/log/archipelago-hardware.log 2>&1
|
||
|
|
echo "✓ Hardware detection complete"
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Create system info file
|
||
|
|
cat > /etc/archipelago/system-info.txt <<INFO
|
||
|
|
Archipelago OS System Information
|
||
|
|
Generated: $(date)
|
||
|
|
|
||
|
|
$(cat /etc/archipelago/hardware.toml 2>/dev/null)
|
||
|
|
|
||
|
|
Runtime Detection:
|
||
|
|
$(cat /var/log/archipelago-hardware.log 2>/dev/null)
|
||
|
|
INFO
|