Ask Your Question

Ttytan's profile - activity

2016-10-09 23:07:19 -0500 commented answer Executing script after wifi is on

I am terribly sorry. I missed a vital part in the description. When I type sudo ifup wlp3s0 in the terminal, I expect to see the first echo in the script, but not even that happens.

2016-09-24 01:55:37 -0500 asked a question Executing script after wifi is on

I want to run a script after I connect to a specific wifi network. First, I've tried to run it after the wifi turns on (without selecting a specific network), but I did not succeed. The script I have tried running is:

echo "I am in ifup-local"

if[[ "$1" == "wlp3s0" ]]
   echo "wlp3s0 is active"

I've named it ifup-local or ifup-pre-local and given it permissions with chmod +x. I have placed it on sbin, etc/NetworkManager/dispatcher.d and etc/network-scripts (one at a time only), but it has not worked. When I do sudo ifup wlp3s0 on the terminal to turn on wifi I expect to see the first echo but not even that happens.

I've followed these instructions: , and googled many answers on stack exchange and similar sites (didn't find anything related here). All those answers say the problem is easy, but none of them has worked for me. This makes me think the solution must be fedora specific.

Any help is much appreciated, even if it's something simple as placing it s/w else or renaming it.