I am trying to reconnect to a wifi network on a Raspberry Pi with Ubuntu Core. In my snap I have:
reconnect: command: systemctl restart systemd-networkd.service daemon: oneshot timer: '01:00' plugs: [ network-control ]
but I keep getting a permission denied error.
/snap/.../command-reconnect.wrapper: 2: exec: /bin/systemctl: Permission denied
I did connect the
network-control plug manually.
I guess I am using the wrong plug?
I have a WiFi USB stick connected to the RPi but sometimes Ubuntu boots too fast, the stick hasn’t finished booting yet so the network isn’t up. My solution is to restart the networkd service but maybe there are better ways?