Thank You,
Alexander and Yizar, but Serguei and Nikola
won the price.
I did forgot about the ifconfig dev delete command.
In linux you don't have to delete the device after
taking it down. Strangely the /usr/sbin/rcinet does
not do this. (Why?)
So this is how I do it now: (It does work!)
================================================
#!/bin/sh
/usr/sbin/rcinet stop
/sbin/ifconfig tu1 delete
/bin/cp /etc/rc.config.net2 /etc/rc.config
/bin/cp /etc/fstab.net2 /etc/fstab
/bin/cp /etc/resolv.conf.net2 /etc/resolv.conf
/bin/cp /etc/routes.net2 /etc/routes
/bin/cp /etc/hosts.net2 /etc/hosts
/bin/cp /etc/inetd.conf.net2 /etc/inetd.conf
/sbin/sync
/usr/sbin/rcinet start
================================================
And I have a similar script to change to net1....
--
Tony Lindström * System Manager * Tekla Oy
tel:+358 9 887 9441 gsm:+358 40 762 0768
http://www.iki.fi/tonyk/ mailto:tonyk_at_iki.fi
Received on Mon Nov 29 1999 - 07:32:14 NZDT