secubox-deb/image/systemd/secubox-net-detect.service
CyberMind-FR 3d85870a1e feat(image): Add network auto-detection and kiosk mode support
Network detection (secubox-net-detect):
- Board detection: MochaBin, ESPRESSObin v7/Ultra, x64 VM/baremetal
- Interface mapping based on device model (eth0=WAN, lan*=LAN)
- Netplan generation for router/bridge/single modes
- Link detection for x64 auto-discovery

Kernel cmdline handler:
- secubox.netmode=router|bridge|single for boot-time network mode
- secubox.kiosk=1 for GUI kiosk mode
- secubox.debug=1 for debug mode

Kiosk mode (secubox-kiosk-setup):
- Minimal GUI: Cage Wayland + Chromium fullscreen
- Displays SecuBox WebUI on connected screen
- Commands: install, enable, disable, status

Board configs:
- board/x64-live/ for Live USB
- board/x64-vm/ for VM environments

Live USB updates:
- GRUB entries for Kiosk Mode and Bridge Mode
- Installs all detection scripts and services

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-28 17:20:25 +01:00

23 lines
596 B
Desktop File

[Unit]
Description=SecuBox Network Interface Auto-Detection
Before=network-pre.target netplan-generate.service
Wants=network-pre.target
After=local-fs.target
# Only run on first boot or when marker is missing
ConditionPathExists=!/var/lib/secubox/.net-configured
[Service]
Type=oneshot
RemainAfterExit=yes
# Run network detection and generate netplan
ExecStart=/usr/sbin/secubox-net-detect apply router
# Create marker after successful configuration
ExecStartPost=/bin/mkdir -p /var/lib/secubox
ExecStartPost=/bin/touch /var/lib/secubox/.net-configured
[Install]
WantedBy=network-pre.target