2008-01-10 Robert Millan <rmh@aybabtu.com>
* util/update-grub_lib.in (grub_file_is_not_garbage): New function. Determines if a file is garbage left by packaging systems, etc. * util/update-grub.in: Use grub_file_is_not_garbage() as a condition for processing /etc/grub.d scripts. * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison. * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage() as a condition for processing Linux images.
This commit is contained in:
parent
87888032b6
commit
2f80039de8
5 changed files with 32 additions and 7 deletions
|
@ -113,3 +113,15 @@ font_path ()
|
|||
|
||||
return 1
|
||||
}
|
||||
|
||||
grub_file_is_not_garbage ()
|
||||
{
|
||||
if test -f "$1" ; then
|
||||
case "$1" in
|
||||
*.dpkg-dist|*.dpkg-old|*.dpkg-tmp) return 1 ;; # debian dpkg
|
||||
esac
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue