source: client/shared/scripts/setBootMode @ ca0f67c6

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since ca0f67c6 was 831830f, checked in by irina <irinagomez@…>, 12 years ago

#493 Configurar el arranque PXE desde el cliente

git-svn-id: https://opengnsys.es/svn/branches/version1.0@3719 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 699 bytes
Line 
1#!/bin/bash
2# #/**
3#        setBootMode
4#@brief   Script to configure the  PXE mode to client
5#@param 1 template
6#@date   2012-02-2-9
7#*/ ##
8
9REPOIP="$(ogGetRepoIp)"
10PORT=2011
11TEMPLATE="/opt/oglive/tftpboot/menu.lst/templates/$1"
12PCNAME="$(hostname)"
13
14if [ "$*" == "help" ]; then
15    ogHelp "$PROG" "$PROG template" \
16           "$PROG pxe" \
17           "$PROG 01"
18    exit
19fi
20
21
22# Control básico de errores.
23if [ $# -ne 1 ]; then
24        ogRaiseError $OG_ERR_FORMAT "$MSG_ERR_FORMAT: $PROG TEMPLATE_NAME"
25        exit $?
26fi
27if [ ! -e $TEMPLATE ]; then
28        ogRaiseError $OG_ERR_NOTFOUND "$MSG_ERR_NOTFOUND: $TEMPLATE"
29        exit $?
30fi
31
32hose $REPOIP $PORT --out sh -c "echo -ne SET_CLIENTMODE $1 $PCNAME"
33
34
Note: See TracBrowser for help on using the repository browser.