custom.cfg support.
* conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom. * util/grub.d/41_custom.in: New file.
This commit is contained in:
parent
ee62c427e5
commit
57711df6ad
3 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
7
util/grub.d/41_custom.in
Normal file
7
util/grub.d/41_custom.in
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
cat <<EOF
|
||||
if [ -f \$prefix/custom.cfg ]; then
|
||||
source \$prefix/custom.cfg;
|
||||
fi
|
||||
EOF
|
||||
|
Loading…
Reference in a new issue