Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add warning / notice to top of /boot/loader.conf about running grub-m…

…kconfig
  • Loading branch information...
commit 6ab95cd5154c8b1f573125dcd2d8f6e8c2f09a6a 1 parent a275da9
@kmoore134 kmoore134 authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 src-sh/xtrafiles/local/share/pcbsd/scripts/sys-init.sh
View
10 src-sh/xtrafiles/local/share/pcbsd/scripts/sys-init.sh
@@ -30,6 +30,16 @@ sh /usr/local/share/pcbsd/scripts/reset-firewall
# Update ports overlay files
/usr/local/bin/pc-extractoverlay ports
+# Add our notice to top of loader.conf
+mv /boot/loader.conf /boot/loader.conf.tmp
+cat <<EOF >/boot/loader.conf
+# * IMPORTANT NOTICE *
+# Run 'grub-mkconfig -o /boot/grub/grub.cfg' after making changes to this file
+###############################################################################
+EOF
+cat /boot/loader.conf.tmp >> /boot/loader.conf
+rm /boot/loader.conf.tmp
+
################################################
# Do desktop specific init
################################################
Please sign in to comment.
Something went wrong with that request. Please try again.