What's the easiest way for a shell script to tell if grub version 1 is installed?
On Sat, 03 Jul 2010 07:41:06 -0400 (EDT), Tom H wrote:
> Stephen Powell <zlinuxman@wowway.com> 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?
>> ...
>
> Anand Sivaram <aspnair@gmail.com> wrote:
>> grub2.0
>> grub-setup --version
>> grub-setup (GRUB) 1.98-1
>> grub-install --version
>> grub-install (GNU GRUB 1.98-1)
>> grub1.0
>> grub --version should print the version.
>
> From bootinfoscript
> http://sourceforge.net/projects/bootinfoscript/
> hexdump -v -n 2 -e '/1 "%x"' $drive
> eb48 == grub1
> eb4c == grub2 (1.96)
> eb63 == grub2 (1.97,1.98)
Thanks, Tom. And thanks also to all who responded. You are all
a wealth of information, and a big help.
--
.'`. Stephen Powell
: :' :
`. `'`
`-
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1034882814.120496.1278940002127.JavaMail.root@md01 .wow.synacor.com">http://lists.debian.org/1034882814.120496.1278940002127.JavaMail.root@md01 .wow.synacor.com
|