On Wed, 19 Nov 2014 14:31:43 -0800 John Jason Jordan <[email protected]> dijo:
>I want to disconnect and later reconnect eth1* in a bash script. "Sudo >ifconfig eth1 down" and then later "...up" will do it, but every time I >run the script I will have to pump in my password. However, I can >connect and disconnect from eth1 via the nm-applet GUI (using the panel >icon) without needing root, so it should be possible to do so from the >command line without sudo as well. Google has not been forthcoming with >a non-sudo command to do this. Any ideas? > >*The ethernet chip on my System76 Bonobo Extreme has two MAC addresses, >so Xubuntu 14.04.1 assigns eth0 to one and eth1 to the other. It always >connects to eth1. Why this is so is beyond my job description, so I >ignore the situation. I forgot to mention why I need to do this. I have a Toshiba Flashair card that acts as a wifi access point. I can connect to it from my laptop, but I cannot view or copy files from it unless I first disconnect eth1. The script copies certain files from the card, so I want to add a line at the beginning to disconnect from eth1 and a similar line at the end to reconnect to eth1. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
