Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Oct 1995 10:13:31 -0700 (PDT)
From:      bmk@dtr.com
To:        dennis@etinc.com (dennis)
Cc:        nathan@netrail.net, questions@freebsd.org, et-users@netrail.net
Subject:   Re: T1 Card and FreeBSD
Message-ID:  <199510141713.KAA00505@everest>
In-Reply-To: <199510141655.MAA13910@etinc.com> from "dennis" at Oct 14, 95 12:55:32 pm

next in thread | previous in thread | raw e-mail | index | archive | help

> >would you know the file it runs when a freebsd does a shutdown? I want to 
> >put that line uust before it syncs the disks. In linux it was 
> >/etc/rc.d/rc.0 but I can't see what freebsd uses. 
> >

> I don't know, I'm copying this to the freebsd list......

> you could create a file called "doshutdown" like this

> /usr/hdlc/utils/et5reset
> shutdown

> and use it instead of shutdown.....

A quick look at the shutdown man page leads me to believe that there's
no script run by shutdown.

However, it should be possible to hack the shutdown source to do what
you want.  I'm not a C expert, but it seems that you could fork another
process that'd execute whatever scripts that you wanted and wait for
completion.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510141713.KAA00505>