]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
custom.cfg support.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 12 Jun 2010 11:20:21 +0000 (13:20 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 12 Jun 2010 11:20:21 +0000 (13:20 +0200)
* conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
* util/grub.d/41_custom.in: New file.

ChangeLog
conf/common.rmk
util/grub.d/41_custom.in [new file with mode: 0644]

index 1def7af01a732dd927a0c9051bd7c98ea87d3860..f148d32041fa925195795169606ae911d2108aca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-06-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       custom.cfg support.
+
+       * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
+       * util/grub.d/41_custom.in: New file.
+
 2010-06-12  Colin Watson  <cjwatson@ubuntu.com>
 
        * util/grub-mkrescue.in (make_image): Remove sh module, which has
index 3b9d1e5ce4d632ae4ae83bdf6bf7833401125909..bf73c2d5931dbdf5ad25d79cd205c64f7b1d90f1 100644 (file)
@@ -201,7 +201,7 @@ CLEANFILES += grub-gettext_lib
 %: util/grub.d/%.in config.status
        ./config.status --file=$@:$<
        chmod +x $@
-grub-mkconfig_SCRIPTS = 00_header 30_os-prober 40_custom
+grub-mkconfig_SCRIPTS = 00_header 30_os-prober 40_custom 41_custom
 ifneq (, $(host_kernel))
 grub-mkconfig_SCRIPTS += 10_$(host_kernel)
 endif
diff --git a/util/grub.d/41_custom.in b/util/grub.d/41_custom.in
new file mode 100644 (file)
index 0000000..64d691c
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+cat <<EOF
+if [ -f  \$prefix/custom.cfg ]; then
+  source \$prefix/custom.cfg;
+fi
+EOF
+