initial
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
[connection]
|
||||
id=Wired connection
|
||||
uuid=2b8f4e84-9c7d-4b3e-8f2a-1d5e6f7a8b9c
|
||||
type=ethernet
|
||||
autoconnect=true
|
||||
autoconnect-priority=100
|
||||
|
||||
[ethernet]
|
||||
|
||||
[ipv4]
|
||||
method=manual
|
||||
addresses=10.0.2.15/24
|
||||
gateway=10.0.2.2
|
||||
dns=10.0.2.3;
|
||||
|
||||
[ipv6]
|
||||
method=ignore
|
||||
@@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
Name=ens* enp* eth*
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Debug Network Info to Serial
|
||||
After=network-online.target eco-daemon.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/bash -c 'echo "=== NETWORK DEBUG ===" > /dev/ttyS0; ip addr >> /dev/ttyS0; echo "=== ROUTES ===" >> /dev/ttyS0; ip route >> /dev/ttyS0; echo "=== LISTENING ===" >> /dev/ttyS0; ss -tlnp >> /dev/ttyS0; echo "=== NM STATUS ===" >> /dev/ttyS0; nmcli device status >> /dev/ttyS0 2>&1; nmcli connection show >> /dev/ttyS0 2>&1; echo "=== END DEBUG ===" >> /dev/ttyS0'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=EcoOS Daemon
|
||||
After=network-online.target seatd.service systemd-networkd-wait-online.service
|
||||
Wants=seatd.service network-online.target
|
||||
Requires=seatd.service
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/opt/eco/bin/eco-daemon
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
WorkingDirectory=/opt/eco
|
||||
|
||||
# Give daemon enough capabilities
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_SYS_ADMIN
|
||||
|
||||
# Logging
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=eco-daemon
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=EcoOS Installer
|
||||
After=multi-user.target getty@tty1.service
|
||||
ConditionKernelCommandLine=ecoos_install=1
|
||||
Conflicts=getty@tty1.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/opt/eco/installer/install.sh
|
||||
StandardInput=tty
|
||||
StandardOutput=tty
|
||||
StandardError=tty
|
||||
TTYPath=/dev/tty1
|
||||
TTYReset=yes
|
||||
TTYVHangup=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1 @@
|
||||
/etc/systemd/system/ecoos-installer.service
|
||||
Reference in New Issue
Block a user