From owner-freebsd-questions Sat Oct 14 10:14:59 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id KAA13308 for questions-outgoing; Sat, 14 Oct 1995 10:14:59 -0700 Received: from everest (dtr.rain.com [204.119.8.19]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id KAA13303 for ; Sat, 14 Oct 1995 10:14:56 -0700 From: bmk@dtr.com Received: (from bmk@localhost) by everest (8.6.11/8.6.9) id KAA00505; Sat, 14 Oct 1995 10:13:32 -0700 Message-Id: <199510141713.KAA00505@everest> Subject: Re: T1 Card and FreeBSD To: dennis@etinc.com (dennis) Date: Sat, 14 Oct 1995 10:13:31 -0700 (PDT) Cc: nathan@netrail.net, questions@freebsd.org, et-users@netrail.net In-Reply-To: <199510141655.MAA13910@etinc.com> from "dennis" at Oct 14, 95 12:55:32 pm Reply-To: bmk@dtr.com X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 722 Sender: owner-questions@freebsd.org Precedence: bulk > >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.