[Midnightbsd-cvs] src: livecd: Move the tar stuff into a start command and make this a

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri May 23 16:19:13 EDT 2008


Log Message:
-----------
Move the tar stuff into a start command and make this a little more rcNG like.

Modified Files:
--------------
    src/nrelease/root/etc/rc.d:
        livecd (r1.4 -> r1.5)

-------------- next part --------------
Index: livecd
===================================================================
RCS file: /home/cvs/src/nrelease/root/etc/rc.d/livecd,v
retrieving revision 1.4
retrieving revision 1.5
diff -L nrelease/root/etc/rc.d/livecd -L nrelease/root/etc/rc.d/livecd -u -r1.4 -r1.5
--- nrelease/root/etc/rc.d/livecd
+++ nrelease/root/etc/rc.d/livecd
@@ -25,21 +25,26 @@
 # SUCH DAMAGE.
 #
 # $MidnightBSD$
-# $FreeBSD: src/etc/rc.d/tmp,v 1.35.2.1 2005/12/15 01:10:10 dougb Exp $
 #
 
 # PROVIDE: livecd
-# REQUIRE: mountcritremote
+# REQUIRE: FILESYSTEMS
+# BEFORE: SERVERS
+# KEYWORD: nojail
 
 . /etc/rc.subr
 
 name="livecd"
-stop_cmd=':'
-
-load_rc_config $name
+start_cmd="livecd_start"
+stop_cmd=":"
 
+livecd_start()
+{
 # Extract the contents of /var, /root, and /usr/local/etc
 # to memory disks.
-tar xzf /root.tgz /
-tar xzf /var.tgz /
-tar xzf /ule.tgz /
+	tar xf /root.tgz /
+	tar xf /var.tgz /
+	tar xf /ule.tgz /
+}
+
+load_rc_config $name


More information about the Midnightbsd-cvs mailing list