[Midnightbsd-cvs] src: root: Test if nextboot is there before we run it

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Oct 26 08:37:17 EDT 2007


Log Message:
-----------
Test if nextboot is there before we run it

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

-------------- next part --------------
Index: root
===================================================================
RCS file: /home/cvs/src/etc/rc.d/root,v
retrieving revision 1.3
retrieving revision 1.4
diff -Letc/rc.d/root -Letc/rc.d/root -u -r1.3 -r1.4
--- etc/rc.d/root
+++ etc/rc.d/root
@@ -33,7 +33,9 @@
 
 	# If we booted a special kernel remove the record
 	# so we will boot the default kernel next time.
-	/sbin/nextboot -D
+	if [ -x /sbin/nextboot ]; then
+		/sbin/nextboot -D
+	fi
 }
 
 load_rc_config $name


More information about the Midnightbsd-cvs mailing list