Subject: Re: CVS commit: src
To: Jonathan Stone <jonathan@DSG.Stanford.EDU>
From: dustin sallings <dustin@spy.net>
List: current-users
Date: 03/16/1999 22:18:36
On Tue, 16 Mar 1999, Jonathan Stone wrote:
// Then perhaps you lose. Your /etc/resolv.conf may not point to the
// right addresses, or you may need to update nsswitch.conf. Or your
// sendmail.cf may need changing, to reflect different routing (either
// for outgoing mail or as the return-path) when you're at home rather
// than at work.
This is another good point. In addition to writing out thing such
as a Samba config if I'm going to be running Samba, I also write out the
following two files every time I update a lease for whenever something may
need to do know what's going on:
-rw-r--r-- 1 root wheel 1229 Mar 16 22:14 /etc/dhcpenv.csh
-rw-r--r-- 1 root wheel 1810 Mar 16 22:14 /etc/dhcpenv.sh
For instance, the following shell script is called from my .login:
#!/bin/sh
. /etc/dhcpenv.sh
if [ -f $HOME/.dhcp/pinerc.$new_domain_name ]
then
# "Setting up pine for $new_domain_name"
rm $HOME/.pinerc
ln -s $HOME/.dhcp/pinerc.$new_domain_name $HOME/.pinerc
fi
--
Principal Member Technical Staff, beyond.com The world is watching America,
pub 1024/3CAE01D5 1994/11/03 Dustin Sallings <dustin@spy.net>
| Key fingerprint = 87 02 57 08 02 D0 DA D6 C8 0F 3E 65 51 98 D8 BE
L______________________________________________ and America is watching TV. __