2007-10-26 22:44:33 +00:00
|
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
GRUB=""
|
|
|
|
for i in /boot/grub/grub.conf /boot/grub/menu.lst
|
|
|
|
do
|
|
|
|
if [ -r "$i" ]
|
|
|
|
then
|
2012-05-15 03:22:15 +00:00
|
|
|
logger -t xcat -p local4.info "Install: got GRUB at $i"
|
2007-10-26 22:44:33 +00:00
|
|
|
GRUB=$i
|
|
|
|
GRUBDIR=$(dirname $GRUB)
|
|
|
|
GRUBFILE=$(basename $GRUB)
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ -n "$GRUB" ]
|
|
|
|
then
|
2012-05-15 03:22:15 +00:00
|
|
|
logger -t xcat -p local4.info "Install: the GRUB dir is $GRUBDIR"
|
2007-10-26 22:44:33 +00:00
|
|
|
cd $GRUBDIR
|
|
|
|
perl -pi -e 's/^gfxmenu/#gfxmenu/' $GRUBFILE
|
|
|
|
perl -pi -e 's/^color/#color/' $GRUBFILE
|
|
|
|
perl -pi -e 's/^serial/#serial/' $GRUBFILE
|
|
|
|
perl -pi -e 's/^terminal/#terminal/' $GRUBFILE
|
|
|
|
perl -pi -e 's/quiet//g' $GRUBFILE
|
|
|
|
fi
|