summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-01-17 03:32:07 +0000
committergrog <grog@FreeBSD.org>1999-01-17 03:32:07 +0000
commit97e8dbce6e1caee1bf81d33df468b8e8aa0e1aa9 (patch)
tree5b2d2833ea001f65cc76073725fa705703c7c376 /etc/rc
parent50ae56ef187a0096fca313cbeacb54bcc5a90064 (diff)
downloadFreeBSD-src-97e8dbce6e1caee1bf81d33df468b8e8aa0e1aa9.zip
FreeBSD-src-97e8dbce6e1caee1bf81d33df468b8e8aa0e1aa9.tar.gz
Add hooks for starting vinum at boot time. Set the variable
vinum_slices to the names of all slices (block device) which are under the control of vinum. The configuration will be read in from each in turn, starting with the most recently updated. Reviewed-by: jkh
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc11
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 806ac86..a30cd04 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.165 1999/01/10 22:06:22 n_hibma Exp $
+# $Id: rc,v 1.166 1999/01/11 09:07:38 asami Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -27,6 +27,15 @@ if [ -f /etc/ccd.conf ]; then
ccdconfig -C
fi
+if [ -n $vinum_slices ]; then
+ if [ -r /modules/vinum.ko ]; then # jkh paranoia
+ kldload vinum
+ vinum read $vinum_slices
+ else
+ echo "Can't find /modules/vinum.ko"
+ fi
+fi
+
swapon -a
if [ $1x = autobootx ]; then
OpenPOWER on IntegriCloud