parent
725d2bf416
commit
6c7b05fa38
Binary file not shown.
|
@ -0,0 +1,35 @@
|
|||
#!ipxe
|
||||
set timeout 0
|
||||
set timeout-style hidden
|
||||
|
||||
set ISODIR ogLive
|
||||
set default 0
|
||||
set kernelargs ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=${ISODIR} LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
|
||||
|
||||
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ${kernelargs}
|
||||
#route
|
||||
|
||||
#echo -n Set network interface number [0 for net0, defaults to 0]: ${} && read net
|
||||
#isset ${net} || set net 0
|
||||
#echo -n IP: && read net${net}/ip
|
||||
#echo -n Subnet mask: && read net${net}/netmask
|
||||
#echo -n Gateway: && read net${net}/gateway
|
||||
#echo -n DNS: && read dns
|
||||
#ifopen net0
|
||||
#route
|
||||
|
||||
#echo Comprobando la conectividad con el servidor 172.17.8.71
|
||||
#ping 172.17.8.71
|
||||
#kernel http://172.17.8.71/ogclient/ogvmlinuz
|
||||
#echo Verificando la conectividad con el servidor 172.17.8.71
|
||||
#imgfetch tftp://172.17.8.71/ogclient/testfile || goto fail
|
||||
#imgfetch tftp://172.17.8.71/ogclient/ogvmlinuz || goto fail
|
||||
#sleep 10
|
||||
# Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto
|
||||
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=$ISODIR LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
|
||||
time kernel tftp://172.17.8.71/ogLive/ogvmlinuz ${kernelargs}
|
||||
#sleep 10
|
||||
time initrd tftp://172.17.8.71/ogLive/oginitrd.img
|
||||
boot
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
#!ipxe
|
||||
set timeout 0
|
||||
set timeout-style hidden
|
||||
|
||||
set ISODIR ogLive
|
||||
set default 0
|
||||
set kernelargs ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=${ISODIR} LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
|
||||
|
||||
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ${kernelargs}
|
||||
echo "OgLive $ISODIR"
|
||||
echo "-----------------------TEST------------------------------------"
|
||||
#route
|
||||
|
||||
#echo -n Set network interface number [0 for net0, defaults to 0]: ${} && read net
|
||||
#isset ${net} || set net 0
|
||||
#echo -n IP: && read net${net}/ip
|
||||
#echo -n Subnet mask: && read net${net}/netmask
|
||||
#echo -n Gateway: && read net${net}/gateway
|
||||
#echo -n DNS: && read dns
|
||||
ifopen net0
|
||||
route
|
||||
|
||||
#echo Comprobando la conectividad con el servidor 172.17.8.71
|
||||
#ping 172.17.8.71
|
||||
#kernel http://172.17.8.71/ogclient/ogvmlinuz
|
||||
#echo Verificando la conectividad con el servidor 172.17.8.71
|
||||
#imgfetch tftp://172.17.8.71/ogclient/testfile || goto fail
|
||||
#imgfetch tftp://172.17.8.71/ogclient/ogvmlinuz || goto fail
|
||||
#sleep 10
|
||||
# Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto
|
||||
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=$ISODIR LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
|
||||
time kernel tftp://172.17.8.71/ogLive/ogvmlinuz ${kernelargs}
|
||||
#sleep 10
|
||||
time initrd tftp://172.17.8.71/ogLive/oginitrd.img
|
||||
|
||||
sleep 10
|
||||
boot
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
#!ipxe
|
||||
set timeout 0
|
||||
set timeout-style hidden
|
||||
|
||||
set ISODIR ogLive
|
||||
set default 0
|
||||
set kernelargs ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=${ISODIR} LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
|
||||
|
||||
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ${kernelargs}
|
||||
echo "OgLive $ISODIR"
|
||||
echo "-----------------------TEST------------------------------------"
|
||||
#route
|
||||
|
||||
#echo -n Set network interface number [0 for net0, defaults to 0]: ${} && read net
|
||||
#isset ${net} || set net 0
|
||||
#echo -n IP: && read net${net}/ip
|
||||
#echo -n Subnet mask: && read net${net}/netmask
|
||||
#echo -n Gateway: && read net${net}/gateway
|
||||
#echo -n DNS: && read dns
|
||||
ifopen net0
|
||||
route
|
||||
|
||||
#echo Comprobando la conectividad con el servidor 172.17.8.71
|
||||
#ping 172.17.8.71
|
||||
#kernel http://172.17.8.71/ogclient/ogvmlinuz
|
||||
#echo Verificando la conectividad con el servidor 172.17.8.71
|
||||
#imgfetch tftp://172.17.8.71/ogclient/testfile || goto fail
|
||||
#imgfetch tftp://172.17.8.71/ogclient/ogvmlinuz || goto fail
|
||||
#sleep 10
|
||||
# Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto
|
||||
#kernel tftp://172.17.8.71/ogclient/ogvmlinuz ro boot=oginit quiet splash irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true ogtmpfs=15 oglivedir=$ISODIR LANG=es_ES.UTF-8 ip=192.168.2.11:192.168.2.1:192.168.2.1:255.255.255.0:pc11:eth0:none group=Aula_virtual ogrepo=192.168.2.1 oglive=192.168.2.1 oglog=192.168.2.1 ogshare=192.168.2.1 ogprof=false vga=788
|
||||
time kernel tftp://172.17.8.71/ogLive/ogvmlinuz ${kernelargs}
|
||||
#sleep 10
|
||||
time initrd tftp://172.17.8.71/ogLive/oginitrd.img
|
||||
|
||||
sleep 10
|
||||
boot
|
||||
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
#!ipxe
|
||||
echo Booting by ipxe
|
||||
echo MAC Address: ${net0/mac}
|
||||
set macaddress ${net0/mac}
|
||||
set prefix http://172.17.8.71/ipxe_scripts
|
||||
echo Prefix: ${prefix}
|
||||
set configfile ${prefix}/01-${net0/mac}
|
||||
echo Config File: ${configfile}
|
||||
ifopen net0
|
||||
route
|
||||
#echo Comprobando la conectividad con el servidor 172.17.8.71
|
||||
#ping 172.17.8.71
|
||||
#
|
||||
# Intentar cargar la configuración personalizada por MAC
|
||||
sleep 5
|
||||
chain ${configfile} ||
|
||||
|
||||
# Si no se encuentra la configuración personalizada, cargar la configuración por defecto
|
||||
chain $prefix/default.ipxe
|
Binary file not shown.
Loading…
Reference in New Issue