Originally Posted by joe_2000
Sure. What batch scripts were in dos are bash scripts in Linux. Except they are a lot more powerful. So you could write a bash script that says
Put it into if-up.d and make it executable.
(I explicitly changed to the directory just to be on the safe side in case it's relevant)
Thank you again for your help. But for some reason I am running into the same issue. I think it has something to do with the actual permission
I created a script called plexstart.sh containing the following:
I made it an executable using the follwing command:
sudo chmod +x plexstart.sh
I copied the file into the /etc/network/if-up.d. When I reboot, nothing happens (to indicate that it has worked). If I navigate to /etc/network/if-up.d and try running:
It starts to run, then stops with the same error:
Failed to create socket on UDP port 53: [Errno 13] Permission denied
However if I run the same command with sudo everything works just fine. Any ideas on what I'm doing wrong?