[SPARCbook] changing domains/IP-addresses on the fly

Sunder sunder at sunder.net
Tue Feb 22 16:16:31 CST 2000


Sunder wrote:
> 
> Something like this
> 
> #!/bin/sh
> /usr/sbin/ifconfig le0 0.0.0.0 down
> /usr/sbin/ifconfig le0 $1 netmask $2 up
> route delete 0.0.0.0
> route add $3 newgateway
^^^^ erm this last line should read:
  route add 0.0.0.0 $3

Sorry. :)


-- 
---------------------------- Kaos Keraunos Kybernetos -------------------- 
 + ^ +  Sunder              "Only someone completely distrustful of   /|\ 
  \|/   sunder at sunder.net    all government would be opposed to what /\|/\ 
<--*--> -------------------- we are doing with surveillance cameras" \/|\/ 
  /|\   You're on the air.   -- NYC Police Commish H. Safir.          \|/ 
 + v +  Say 'Hi' to Echelon  "Privacy is an 'antisocial act'" - The FedZ.
---------------------------- http://www.sunder.net -----------------------
I love the smell of Malathion in the morning, it smells like brain cancer.






More information about the SPARCBook mailing list