[SOLVED] What's the easiest way for a shell script to tell if grub version 1 is installed?

2010-07-12 Thread Stephen Powell
On Sat, 03 Jul 2010 07:41:06 -0400 (EDT), Tom H wrote: Stephen Powell zlinux...@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? ...

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

2010-07-03 Thread Tom H
Stephen Powell zlinux...@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 aspn...@gmail.com wrote: grub2.0 grub-setup

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

2010-07-02 Thread Anand Sivaram
On Fri, Jul 2, 2010 at 08:17, Bob Proulx b...@proulx.com wrote: 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

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

2010-07-01 Thread Stephen Powell
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?

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

2010-07-01 Thread Andrei Popescu
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

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

2010-07-01 Thread Ron Johnson
On 07/01/2010 01:30 PM, 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

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

2010-07-01 Thread Bob Proulx
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 If you only need to