* 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:
Vladimir 'phcoder' Serbinenko 2012-05-27 15:34:41 +02:00
parent 9da59c3275
commit 40e80b9403
3 changed files with 33 additions and 1 deletions

View file

@ -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