View Single Post
Guest | Posts: n/a | Thanked: 0 times | Joined on
#35
Hello,

I need help please. I try to make a dbus script that whenever to connect to a wifi called Home it will automatically add some routes that are written in a file called work inside /bin/ directory. when i use app dbus-scripts-settings it generate this command:

/bin/work * * com.nokia.icd * xxxxx-xxxx-xxx-xxx-xxxxxxxxx * CONNECTED

the script work contains:

route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.2.1

if I execute work in the terminal it works.. but I want it to work automatically when i connect to Home and it is not working this way.. can someone help please.. thanks