Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 1999 18:31:20 -0500 (EST)
From:      Brian Feldman <green@unixhelp.org>
To:        current@FreeBSD.ORG
Subject:   Addition to /etc/rc, maybe
Message-ID:  <Pine.BSF.4.05.9901251830570.2040-100000@janus.syracuse.net>

next in thread | raw e-mail | index | archive | help
How does this look?

--- src/etc/rc.orig	Mon Jan 25 17:39:07 1999
+++ src/etc/rc	Mon Jan 25 17:43:52 1999
@@ -152,6 +152,16 @@
 	clean_var
 fi
 
+# Load the vn module, if enabled.
+if [ "X$vn_enable" = "XYES" ]; then
+	echo "Loading vn module."
+	if [ -f /modules/vn.ko ]; then
+		kldload vn
+	else
+		echo "Cannot find /modules/vn.ko."
+	fi
+fi
+
 # Add additional swapfile, if configured.
 if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then
 	echo "Adding $swapfile as additional swap."
--- src/etc/rc.conf.orig	Mon Jan 25 17:36:03 1999
+++ src/etc/rc.conf	Mon Jan 25 17:44:14 1999
@@ -12,7 +12,9 @@
 ### Important initial Boot-time options  #####################
 ##############################################################
 
+vn_enable="NO"		# Set to YES if you want the vn kld loaded.
 swapfile="NO"		# Set to name of swapfile if aux swapfile desired.
+			# This needs pseudo-device vn or vn_enable="YES".
 apm_enable="NO"		# Set to YES if you want APM enabled.
 pccard_enable="NO"	# Set to YES if you want to configure PCCARD devices.
 pccard_mem="DEFAULT"	# If pccard_enable=YES, this is card memory address.


 Brian Feldman					  _ __  ___ ___ ___  
 green@unixhelp.org			      _ __ ___ | _ ) __|   \ 
	     http://www.freebsd.org/	 _ __ ___ ____ | _ \__ \ |) |
 FreeBSD: The Power to Serve!	   _ __ ___ ____ _____ |___/___/___/ 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901251830570.2040-100000>