blob: 1a67fc2564bb1cc5b7c2a553dce8722529cb1bde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
##NO-TOCAR-ESTA-LINEA ogLive
set timeout=0
set timeout_style=hidden
set ISODIR=ogLive
# Si existe ogLive en CACHE lo inicio, si no el de la red
set root=''
echo "OgLive CACHE"
search --file --set root /boot/$ISODIR/ogvmlinuz
if [ "$root" == "" ]; then
echo "OgLive $ISODIR"
set default=1;
else
set default=0;
fi
menuentry "OgLive CACHE" {
linux /boot/$ISODIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=false ogdebug=false ogupdateinitrd=true ogtmpfs=15 oglivedir=$ISODIR INFOHOST
initrd /boot/$ISODIR/oginitrd.img
boot
}
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=false ogdebug=false ogtmpfs=15 oglivedir=$ISODIR INFOHOST ; then
set DIR=$DIR
break
else
echo "OgLive default"
fi
done
initrd (tftp)/$DIR/oginitrd.img
boot
}
|