summaryrefslogtreecommitdiff
path: root/sysutils/grub2-pcbsd/files/patch-util_grub-mkconfig.in
blob: 3fb66966ecc0e89912a3c1d06502fa12bf205272 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- util/grub-mkconfig.in.orig	2015-06-03 14:54:01 UTC
+++ util/grub-mkconfig.in
@@ -281,3 +281,11 @@ fi
 
 gettext "done" >&2
 echo >&2
+
+# If pcbsd-utils are installed, the restamp-grub command will exist
+# Use it to do the grub-install and copy grub.cfg to other BEs
+which restamp-grub >/dev/null 2>/dev/null
+if [ $? -eq 0 ] ; then
+   restamp-grub
+fi
+