summaryrefslogtreecommitdiffstats
path: root/server/tftpboot/grub/templates/oglive-admin
blob: 211a543b8fa80e3d55b979c576e2ed2a28d30cc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##NO-TOCAR-ESTA-LINEA ogLiveAdmin
set timeout=0
set timeout_style=hidden

set ISODIR=ogLive
set default=0;

echo "OgLive $ISODIR"
menuentry "OgLive $ISODIR" {
    # Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto
    for DIR in $ISODIR ogLive; do
	if linux (tftp)/$DIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=$ISODIR INFOHOST ; then
	    set DIR=$DIR
	    break
	else
	    echo "OgLive default"
	fi
    done

    initrd (tftp)/$DIR/oginitrd.img
    boot
}