mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
config_directory. * util/grub.d/41_custom.in: Use config_directoy when available.
10 lines
216 B
Bash
10 lines
216 B
Bash
#!/bin/sh
|
|
cat <<EOF
|
|
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
|
|
|