[SLL] limit on number of files in a directory and hashed dir vs. flat dir file access time
Robert Woodcock
rcw at blarg.net
Wed Nov 7 06:36:51 PST 2007
On Tue, Nov 06, 2007 at 07:03:21PM -0800, Adam Monsen wrote:
> On Nov 6, 2007 11:11 AM, Ana <christiana at hipointcoffee.com> wrote:
> [...]
> > I've been thinking about how to automate this
> > (boot, test, reboot, test...) so I don't have to babysit it.
> [...]
>
> Chuck, do you remember how to do this? I recall something about a
> relay and a capacitor and other stuff I know very little about.
Err, I would hope you could get a system to reboot without extra parts. :)
First, get it booting up to your shell script or whatever (I don't know if
the kernel init= parameter will accept an interpreted script, if not, then
maybe consider an initrd with a /linuxrc file. You could also butcher the
existing inittab, or create a new /etc/rcS.d file, but that's a little
harder to undo if needed.)
Then, have the script mount the target filesystem read/write, read some
state information you left on the filesystem to tell it what step to jump
to (STEP=$(cat /path/to/file), do that test (case $STEP in 1) foo;; 2) bar;;
esac), recording the results to disk, then rewrite the state information
(echo $(($STEP + 1)) > /path/to/file), remount read-only, and reboot.
--
Robert Woodcock - rcw at blarg.net
"A lie is an abomination unto the Lord and a very present help in time of
trouble."
-- Adlai Stevenson
More information about the linux-list
mailing list