Subversion Repositories ALCASAR

Rev

Rev 2111 | Rev 2138 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2111 Rev 2114
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2111 2017-01-08 17:42:44Z richard $ 
2
#  $Id: alcasar.sh 2114 2017-01-09 17:05:59Z franck $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 1988... Line 1988...
1988
	if [ $grub_already_modified == 0 ]
1988
	if [ $grub_already_modified == 0 ]
1989
		then
1989
		then
1990
		$SED "s?^timeout.*?timeout 3?g" /boot/grub/menu.lst
1990
		$SED "s?^timeout.*?timeout 3?g" /boot/grub/menu.lst
1991
		$SED "s?^title linux?title ALCASAR?g" /boot/grub/menu.lst
1991
		$SED "s?^title linux?title ALCASAR?g" /boot/grub/menu.lst
1992
		$SED "/^kernel/s/splash quiet //" /boot/grub/menu.lst
1992
		$SED "/^kernel/s/splash quiet //" /boot/grub/menu.lst
-
 
1993
# is an virtual machine (proxmox, vmware, ) ?
-
 
1994
		vm_vga=`lsmod | egrep "virtio|vmwgfx" | wc -l`
-
 
1995
		if [ $vm_mga == 0 ]
-
 
1996
		then
1993
		$SED "/^kernel/s/$/ vga=791/" /boot/grub/menu.lst
1997
			$SED "/^kernel/s/$/ vga=791/" /boot/grub/menu.lst
-
 
1998
		fi
1994
		$SED "/^kernel/s/BOOT_IMAGE=linux /BOOT_IMAGE=linux-nonfb /" /boot/grub/menu.lst
1999
		$SED "/^kernel/s/BOOT_IMAGE=linux /BOOT_IMAGE=linux-nonfb /" /boot/grub/menu.lst
1995
		$SED "/^gfxmenu/d" /boot/grub/menu.lst
2000
		$SED "/^gfxmenu/d" /boot/grub/menu.lst
1996
	fi
2001
	fi
1997
# Load and apply the previous conf file
2002
# Load and apply the previous conf file
1998
	if [ "$mode" = "update" ]
2003
	if [ "$mode" = "update" ]