I have installed Lubuntu 18.1
I have a simple script to VNC into another PC.
Code:
#!/bin/bash
xtightvncviewer 192.168.1.10:5
I would like to only trigger this script when a successful wireless connection is made.
I created this script in my home folder and then moved this script into /NetworkManager/dispatcher.d using sudo mv -f -i
I then made it executable using chmod +x.
My script is unfortunately not executing on boot up and successful connection.
Under /network/interfaces it states: #ifupdown has been replaced by netplan(5) on this system. See /etc/netplan for current configuration.
Under /netplan/network-manager.yaml it states: #Let NetworkManager manage all devices on this system.
I am unsure why my script is not running on successful network connection, and do not know how to troubleshoot this.
I know my script works because if I click it and execute it manually the VNC works.
Any ideas on where to look and fix this?
Thanks
Bookmarks