Start a script on network connection

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

Start a script on network connection

Postby Macburp on Sun May 13, 2012 5:17 pm

Asus EE PC 701, with Linux Mint 9, connected with wireless (wlan0). The wireless connection is configured using the network manager applet

I want to run a script at network startup, so I don't get a network fail - the script starts dropbox, and it does work if I run it manually.

After a fair amount of reading I've tried putting the script in a number of places -

- etc/network/if-up.d
- etc/dhcp3/
- etc/NetworkManager/distributor.d

and none of these have worked. Checking recent entries in /var/log/syslog shows that NM tried to run the script in distributor.d, but if fails with 'error status=255' - very weird, as the script works fin if run manually.

Is there anythnig else I should be looking at to get this working?

regards,
Macburp
Level 1
Level 1
 
Posts: 7
Joined: Thu Oct 13, 2011 6:24 am

Linux Mint is funded by ads and donations.
 

Re: Start a script on network connection

Postby oobetimer on Fri May 25, 2012 5:24 pm

User avatar
oobetimer
Level 7
Level 7
 
Posts: 1890
Joined: Tue Jun 01, 2010 12:53 pm
Location: Finland / above the Arctic Circle


Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 6 guests