[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What's the easiest way for a shell script to tell if grub version 1 is installed?



On Jo, 01 iul 10, 14:30:12, Stephen Powell wrote:
> What's the easiest way for a shell script to tell if grub version 1
> is installed?  It is important to distinguish grub version 1 from
> grub version 2.  For example, can I just do this?
> 
> if [ -f /boot/grub/menu.lst ];then
>    blah
>    blah
>    blah
> fi
> 
> Or does that file exist in grub version 2 as well?  I don't have
> grub version 2 installed on any of my machines; so I can't easily
> determine this.

It doesn't exist in grub2, but there is no guarantee it was removed on 
upgrade. If you question relates only to Debian systems why not ask 
dpkg?

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Attachment: signature.asc
Description: Digital signature


Reply to: