Subject: Re: Delete by date
To: None <cruller@unicom.net>
From: Colin Wood <cwood@ichips.intel.com>
List: port-mac68k
Date: 02/24/1998 14:45:18
cruller@unicom.net wrote:
> I upgraded to 1.3 last night by following the directions in the How-To. 
> Things are acting ....strange.  The one thing I didn't do was clean out
> all the old binaries and wish to do so now befor I wipe the drive &
> start fresh.  Here's the path I took.
> 
> Install new 1.3 kernal from installer
> 
> build devices <---when is this necessary?

Actually, it would be more useful to do:

cd /dev
sh MAKEDEV all

once you've installed a new MAKEDEV script.  That way, you get the latest
and greatest.  I don't think we've changed devices much of late, tho.
 
> boot single user
> mount fs r/w
> 
> fsck -f
> 
> reboot -n
> 
> cpin the 1.3 binaries
> 
> cd /
> 
> tar --unlink -zxvpf /path/to/binary.tgz for all but the comp & xcomp
> packages

Sounds good so far.

> Change option NO to Yes in the file (I forget the name off hand) the
> How-to told me to change.  (??If this is required to boot multi-user
> then why isn't it set up that way to begin with???)

The idea is to force you to look at and configure rc.conf before you boot
multi-user since there are several things in there you may want to enable
for your first multi-user boot.  The real reason this isn't done
automatically is that we don't use sysinst to install NetBSD (like many
other ports do).  I believe that sysinst will ask you what you want to
enable and modify the file for you automatically.

> So here is what is going on on my Q800, Apple keys, mouse, 16" monitor,
> 24/250.
> 
> I get wierd permission denied messages in the boot process about send
> mail
> 
> X no longer works. there is no grf0 at intvid.  I have
> /dev/grf0,/dev/grf1,/dev/grf2,/dev/grf3.  I put /usr/X11R6/bin in my
> path & ldconfig -m /usr/X11R6/lib
> 
> X used to work fine with the MadHatter kernel & 1.2.XX distribution in
> b&w.

That's the problem.  The madhatter patch _isn't_ in 1.3, so most
resolutions on internal video won't work (some usually do, like 640x480).
That's why grf0 is failing to configure in all likelihood.  If you can
compile your own kernels, you can add the madhatter patch yourself and it
should work just fine.

> Anywho...ramble...ramble...My qustion is:
> 
> how do I find all the files in my file system older than a certain date
> (say 12/1/97) and delete them enmasse. Is it something like 
> find ./ -date < 12/1/97 | -rm *.*
> 
> I've poked around in the man pages but I'd like some advice befor I
> experimentally hose something, and have to install the base.tgz from the
> installer.

Try looking at the "ctime", and "mtime" options.  Also, use the -print
option to get a list of files found.  Look at the files it gives you
before you pipe the command to "xargs /bin/rm -f" to remove them.

Later.

-- 
Colin Wood                                 cwood@ichips.intel.com
Component Design Engineer - MD6                 Intel Corporation
-----------------------------------------------------------------
I speak only on my own behalf, not for my employer.