-1

i would like to run this command after my network has been established when i boot up my ubuntu.

the command in the terminal is : "mavproxy.py --master=/dev/ttyACM0 --baudrate=57600 --out=myipaddress --console"

Where do i need to create this script and how to make it execute after the internet has been detected?

Thanks.

2
  • Is it ok if the command is run after log in (and after connection is established)? May 18, 2015 at 11:21
  • Stratos, did you notice the question? May 18, 2015 at 15:33

2 Answers 2

0

You can put your script in /etc/rc.local.

This command will be executed at the end on the start of you pc.

Simple you can edit

sudo nano /etc/rc.local

and at the end of file put you command

mavproxy.py --master=/dev/ttyACM0 --baudrate=57600 --out=myipaddress --console &&
2
  • but is this going to be executed after the internet has been detected? May 18, 2015 at 9:20
  • If you have configured cable or wlan connection answer is yes.
    – 2707974
    May 18, 2015 at 9:28
0

Make the script with executable permissions and copy to the location /etc/network/if-up.d/ as soon as network ethX up scripts in this location will be triggered.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .