[Midnightbsd-cvs] src: firstboot: We're having a lot of compliants about pkg_add failing

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Oct 17 13:20:43 EDT 2008


Log Message:
-----------
We're having a lot of compliants about pkg_add failing which seem to be firewall related.  Drop the firewall during the firstboot script and bring it back up after fetching.

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

-------------- next part --------------
Index: firstboot
===================================================================
RCS file: /home/cvs/src/etc/rc.d/firstboot,v
retrieving revision 1.3
retrieving revision 1.4
diff -L etc/rc.d/firstboot -L etc/rc.d/firstboot -u -r1.3 -r1.4
--- etc/rc.d/firstboot
+++ etc/rc.d/firstboot
@@ -32,7 +32,9 @@
 		read installbstat
 		if [ ${installbstat} = "yes" ]; then
 			if [ ! -f /usr/local/etc/rc.d/bsdstats.sh ]; then
+				/sbin/ipfw disable firewall
 				/usr/sbin/pkg_add -r bsdstats
+				/sbin/ipfw enable firewall
 			fi
 			echo "bsdstats_enable=\"YES\"" >> /etc/rc.conf
 		fi
@@ -48,9 +50,11 @@
 				echo "ttyv8 \"/usr/local/bin/kdm -nodaemon\" xterm on secure" >> /etc/ttys
 			else
 #			GNUSTEP/WindowMaker/Slim
+				/sbin/ipfw disable firewall
 				/usr/sbin/pkg_add -r gnustep
 				/usr/sbin/pkg_add -r slim
 				/usr/sbin/pkg_add -r windowmaker
+				/sbin/ipfw enable firewall
 				echo "slim_enable=\"YES\"" >> /etc/rc.conf
 			fi
 			echo "Please restart to enable graphical login."


More information about the Midnightbsd-cvs mailing list