config info location in Mandrake

Bill Campbell bill
Mon May 17 11:42:35 PDT 2004


On Thu, Jan 02, 2003 at 04:31:50PM -0800, Keith Morse wrote:
>On Thu, 2 Jan 2003 kwall at kurtwerks.com wrote:
>
>> Feigning erudition, Bill Campbell wrote:
>> % 
>> % Not offhand, having only run Mandrake 8.2 for a couple of days, but the way
>> % I usually find things like this is to touch a file, make a change using the
>> % vendor's GUI, then run find to get anything newer than the touched file:
>> % 
>> % 	touch /tmp/timestamp
>> % 	# edit using GUI
>> % 	find / -xdev -type f -newer /tmp/timestamp
>> 
>> Say, now *there's* a handy guru trick!

I can't tell you how many times I've used that to figure out what changes
when some program's been run.  The ``lsof'' program is also useful, but
sometimes it's difficult to catch things at the exact moment.

>> Kurt
>
>AFAIC, this is one of the best reasons to be on this list.  All sorts of 
>guru gems get bandied about.
>
>To Bill, I've done different permutations of find and grep with no luck so 
>far.  I've keyed in on using ESSID and am trying understand how ifup gets 
>the parameter to pass to iwconfig.  But I still don't know where ifup gets 
>those parameters from.

On Caldera systems, it gets it from files in /etc/sysconfig/network-scripts,
one per interface.

If you know the IP address assigned, (and it's not being assigned by dhcp),
you can usually find things like that using (the -follow isn't usually
necessary, but is handy on things like SCO OpenServer with its symlink hell
:-).

	find /etc -follow -type f | xargs grep -l $ipaddress

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

The very powerful and the very stupid have one thing in common.
Instead of altering their views to fit the facts, they alter the facts
to fit their views ... which can be very uncomfortable if you happen to
be one of the facts that needs altering.
                -- Doctor Who, "Face of Evil"


More information about the Linux-users mailing list