This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]


Hi all.

This has been at the back of my mind for awhile now since having to
do something for /etc/profile.default.

What I'm thinking of is a directory structure containing default files
and a script which, if the original of the default file doesn't exist,
copies it.  I'm specifically thinking of:

/etc/skel/[initial user files here]

I think creating...

/etc/defaults/etc/skel/[initial user files here]

and the script...


cd /etc/defaults
for f in `find . -type f`; do
	fDest = `echo $f | sed 's/^\.//g'`
	echo $f $fDest
	if [ ! -f $fDest ]; then
		echo Using the default version of $fDest
		cp $f $fDest
		echo $fDest is already in existance, not overwriting.


There are however, a few problems which need to be overcome.

The first is that this script, although best as a postinstall,
would have be executed _after every install_.

The other would be to get people to use it ;)

Well, that's my mental thoughts on paper(?!).  Any comments?
would it be worth doing?



It's so stupid of modern civilization to have given up believing in the
Devil when he is the only explanation of it.

Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]