summaryrefslogtreecommitdiffstats
path: root/etc
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
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')
-rw-r--r--etc/rc11
-rw-r--r--etc/rc.conf3
2 files changed, 12 insertions, 2 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
diff --git a/etc/rc.conf b/etc/rc.conf
index a1f9556..7a3d5ea 100644
--- a/etc/rc.conf
+++ b/etc/rc.conf
@@ -6,7 +6,7 @@
#
# All arguments must be in double or single quotes.
#
-# $Id: rc.conf,v 1.74 1999/01/13 08:20:54 hm Exp $
+# $Id: rc.conf,v 1.75 1999/01/13 17:32:37 joerg Exp $
##############################################################
### Important initial Boot-time options #####################
@@ -194,6 +194,7 @@ ldconfig_paths_aout="/usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aou
kern_securelevel_enable="NO" # kernel security level (see init(8)),
kern_securelevel="-1" # range: -1..3 ; `-1' is the most insecure
update_motd="YES" # update version info in /etc/motd (or NO)
+vinum_slices="" # put in names of vinum slices to enable vinum
##############################################################
### Allow local configuration override at the very end here ##
OpenPOWER on IntegriCloud