From owner-freebsd-stable Sun Jan 6 8:56:27 2002 Delivered-To: freebsd-stable@freebsd.org Received: from smart.eusc.inter.net (smart.eusc.inter.net [213.73.101.5]) by hub.freebsd.org (Postfix) with ESMTP id 0C47337B404 for ; Sun, 6 Jan 2002 08:56:21 -0800 (PST) Received: from tc12-n67-160.de.inter.net ([213.73.67.160] helo=there) by smart.eusc.inter.net with smtp (Exim 3.22 #3) id 16NGap-0006ym-00 for freebsd-stable@freebsd.org; Sun, 06 Jan 2002 17:56:19 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Matthias Schuendehuette Reply-To: msch@snafu.de Organization: Micro$oft-free Zone To: freebsd-stable@freebsd.org Subject: Enhancement for rc.shutdown Date: Sun, 6 Jan 2002 17:55:28 +0100 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I did an enhancement for /etc/rc.shutdown and perhaps someone appreciates it (and commits it? :-). I added commands to umount all vinum filesystems, because vinum can't be loaded twice (-> kern/30588). If this is a totally forbidden way to publish such enhancements, please let me know. Ciao/BSD - Matthias --- /usr/src/etc/rc.shutdown Thu Dec 20 18:56:21 2001 +++ /etc/rc.shutdown Sun Jan 6 17:11:49 2002 @@ -95,6 +95,16 @@ # Insert other shutdown procedures here +#Umount vinum-filesystems and unload vinum + +echo -n 'umounting vinum filesystems and unloading vinum... ' +vinumfs=`grep ^/dev/vinum /etc/fstab | cut -f2` +for fs in $vinumfs; do + /sbin/umount $fs +done + +/sbin/vinum stop + # Saving firewall state tables should be done last echo -n 'Saving firewall state tables:' -- *************************************************************************** * Matthias Schuendehuette msch@snafu.de * * Solmsstrasse 44 * * D-10961 Berlin Engineering Systems Support and Operation * * Germany (Powered by FreeBSD 4.5-PRERELEASE) * *************************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message