I tried to conifg a systemd service that use nmcli connect wifi at system startup, so I can debug board with ssh directly and save cable connection.I am not familiar with systemd and add service reference to netcfg and v2ray. such as
rock@rockpie:/etc/systemd$ cat system/wificon.service
[Unit]
Description=Auto WIFI connect at startup
Wants=network.target
Before=network.target
[Service]
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
User=nobody
ExecStart=/usr/bin/nmcli con up home
[Install]
WantedBy=multi-user.target
it not work. and journalctl -b -1 seems have not any relative info