To get my system connected to internet, I have to manually login via the web page of my ISP. This is not very convenient. I found a python script online which automates this. it takes the login/password and mimics what I would have to do manually. It works fine. I open up a terminal and run the script every time.
I try to put the script in /etc/network/if-up.d
so that it runs automatically when the interface is up. But it doesn't run and it doesn't log anything where it usually logs.
The script is executable and has sha bang #!/usr/bin/python
What could be the possible reason why it doesn't run? Is there any other folder I have to put in?