/etc/systemd/system/ib0.path
Code: Alles auswählen
[Unit]
Description=Monitors ib0 mode
[Path]
PathExists=/sys/class/net/ib0/mode
Unit=ib0mode.service
[Install]
WantedBy=multi-user.targe
Code: Alles auswählen
[Unit]
Description=Sets the mode for ib0
[Service]
Type=oneshot
ExecStart=/bin/echo connected > /sys/class/net/ib0/mode
Code: Alles auswählen
systemctl enable ib0.path
Failed to execute operation: Invalid argument
Sollte irgend jemand eine schönere Variante haben: Immer her damit.