c12f23ee95
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12679 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
25 lines
622 B
Plaintext
Executable File
25 lines
622 B
Plaintext
Executable File
# 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
|
|
logger -t xcat -p local4.info "Install: got GRUB at $i"
|
|
GRUB=$i
|
|
GRUBDIR=$(dirname $GRUB)
|
|
GRUBFILE=$(basename $GRUB)
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [ -n "$GRUB" ]
|
|
then
|
|
logger -t xcat -p local4.info "Install: the GRUB dir is $GRUBDIR"
|
|
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
|