Hello, I have the following script which exchanges the IPs of two network adapters:
[code] #!/bin/bash /usr/bin/cp /etc/conf.d/net-2 /etc/conf.d/net; /etc/init.d/net.eth1 stop; /etc/init.d/net.eth0 restart; /etc/init.d/net.eth1 start [/code] and a similar one with "/usr/bin/cp /etc/conf.d/net-1 /etc/conf.d/net;" in it to restore the original situation. In net-1 and net-2 config files the IPs of eth0 and eth1 are substituted. The problem is that when I run the script from eth1 via SSH it stops executing when the interface stops. If it is ran from eth0 it executes normally. Is there a way to tell bash not to stop executing commands if connection is broken or some more convenient gentoo-style way to exchange the IPs from SSH. TIA Todor -- gentoo-user@gentoo.org mailing list