Date: Sat, 14 Oct 1995 14:24:25 -0400 From: dennis@etinc.com (dennis) To: et-users@netrail.net Cc: questions@freebsd.org, nathan@netrail.net Subject: Re: [ET-users] Re: T1 Card and FreeBSD Message-ID: <199510141824.OAA14090@etinc.com>
next 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. > This sounds like way too much work. I would do the following: mv /sbin/shutdown /sbin/shutdown.orig and then create a batch file named /sbin/shutdown as to following: /usr/hdlc/utils/et5reset 0 #/usr/hdlc/utils/et5reset 2 when you add another board /sbin/shutdown.orig Another solution is to enable the "memory sharing" option in the config file for the board. This will cause the shared memory window to be enabled only when the memory is being accessed. There is a little overhead, but not much. You may be using this to put multiple boards at the same address when you add more boards anyway. Dennis ---------------------------------------------------------------------------- Emerging Technologies, Inc. http://www.etinc.com Synchronous Communications Cards and Routers For Discriminating Tastes. 56k to T1 and beyond. Frame Relay, PPP, HDLC, and X.25
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510141824.OAA14090>