* grub-core/normal/main.c (read_config_file): Provide config_file and
config_directory. * util/grub.d/41_custom.in: Use config_directoy when available.
This commit is contained in:
parent
9da59c3275
commit
40e80b9403
3 changed files with 33 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/bin/sh
|
||||
cat <<EOF
|
||||
if [ -f \$prefix/custom.cfg ]; then
|
||||
if [ -f \${config_directory}/custom.cfg ]; then
|
||||
source \${config_directory}/custom.cfg
|
||||
elif [ -z "\${config_directory}" -a -f \$prefix/custom.cfg ]; then
|
||||
source \$prefix/custom.cfg;
|
||||
fi
|
||||
EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue