git-svn-id: https://opengnsys.es/svn/branches/version1.0@2062 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
45d4778e49
commit
5ad5dcc725
|
@ -1093,26 +1093,27 @@ function openGnsysOldClientCreate()
|
|||
}
|
||||
|
||||
|
||||
# Crear nuevo cliente OpenGnSys 1.0
|
||||
function openGnsysClientCreate()
|
||||
# Crear cliente OpenGnSys 1.0.1
|
||||
function clientCreate()
|
||||
{
|
||||
local DOWNLOADURL=http://www.opengnsys.es/downloads
|
||||
local FILENAME=ogclient-1.0.1-lucid-32bit.tar.gz
|
||||
local DOWNLOADURL="http://www.opengnsys.es/downloads"
|
||||
local FILENAME=ogclient-1.0.2-natty-32bit-beta00-rev2046.iso
|
||||
local TMPFILE=/tmp/$FILENAME
|
||||
local TMPDIR=${TMPFILE%.iso}
|
||||
|
||||
echoAndLog "${FUNCNAME}(): Loading Client"
|
||||
# Descargar y descomprimir cliente ogclient
|
||||
# Descargar, montar imagen, copiar cliente ogclient y desmontar.
|
||||
wget $DOWNLOADURL/$FILENAME -O $TMPFILE
|
||||
if [ ! -s $TMPFILE ]; then
|
||||
errorAndLog "${FUNCNAME}(): Error loading OpenGnSys Client"
|
||||
return 1
|
||||
fi
|
||||
echoAndLog "${FUNCNAME}(): Extranting Client files"
|
||||
tar xzvf $TMPFILE -C $INSTALL_TARGET/tftpboot
|
||||
echoAndLog "${FUNCNAME}(): Copying Client files"
|
||||
mount -o loop,ro $TMPFILE $TMPDIR
|
||||
cp -vr $TMPDIR/* $INSTALL_TARGET/tftpboot
|
||||
umount $TMPDIR
|
||||
rmdir $TMPDIR
|
||||
rm -f $TMPFILE
|
||||
# Usar la versión más reciente del Kernel y del Initrd para el cliente.
|
||||
ln -f $(ls $INSTALL_TARGET/tftpboot/ogclient/vmlinuz-*|tail -1) $INSTALL_TARGET/tftpboot/ogclient/ogvmlinuz
|
||||
ln -f $(ls $INSTALL_TARGET/tftpboot/ogclient/initrd.img-*|tail -1) $INSTALL_TARGET/tftpboot/ogclient/oginitrd.img
|
||||
# Establecer los permisos.
|
||||
chmod -R 755 $INSTALL_TARGET/tftpboot/ogclient
|
||||
chown -R :$OPENGNSYS_CLIENT_USER $INSTALL_TARGET/tftpboot/ogclient
|
||||
|
@ -1377,7 +1378,7 @@ fi
|
|||
#fi
|
||||
|
||||
# Crear la estructura del cliente de OpenGnSys 1.0
|
||||
openGnsysClientCreate
|
||||
clientCreate
|
||||
if [ $? -ne 0 ]; then
|
||||
errorAndLog "Error creating client"
|
||||
exit 1
|
||||
|
|
|
@ -1016,26 +1016,28 @@ function openGnsysCopyClientFiles()
|
|||
}
|
||||
|
||||
|
||||
# Crear cliente OpenGnSys 1.0
|
||||
function openGnsysClientCreate()
|
||||
# Crear cliente OpenGnSys 1.0.2
|
||||
function clientCreate()
|
||||
{
|
||||
local DOWNLOADURL=http://www.opengnsys.es/downloads
|
||||
local FILENAME=ogclient-1.0.1-lucid-32bit.tar.gz
|
||||
local DOWNLOADURL="http://www.opengnsys.es/downloads"
|
||||
local FILENAME=ogclient-1.0.2-natty-32bit-beta00-rev2046.iso
|
||||
local TMPFILE=/tmp/$FILENAME
|
||||
|
||||
local TMPDIR=${TMPFILE%.iso}
|
||||
|
||||
echoAndLog "${FUNCNAME}(): Loading Client"
|
||||
# Descargar y descomprimir cliente ogclient
|
||||
# Descargar, montar imagen, copiar cliente ogclient y desmontar.
|
||||
wget $DOWNLOADURL/$FILENAME -O $TMPFILE
|
||||
if [ ! -s $TMPFILE ]; then
|
||||
errorAndLog "${FUNCNAME}(): Error loading OpenGnSys Client"
|
||||
return 1
|
||||
fi
|
||||
echoAndLog "${FUNCNAME}(): Extranting Client files"
|
||||
tar xzvf $TMPFILE -C $INSTALL_TARGET/tftpboot
|
||||
echoAndLog "${FUNCNAME}(): Copying Client files"
|
||||
mount -o loop,ro $TMPFILE $TMPDIR
|
||||
cp -vr $TMPDIR/* $INSTALL_TARGET/tftpboot
|
||||
umount $TMPDIR
|
||||
rmdir $TMPDIR
|
||||
rm -f $TMPFILE
|
||||
# Usar la versión más reciente del Kernel y del Initrd para el cliente.
|
||||
ln -f $(ls $INSTALL_TARGET/tftpboot/ogclient/vmlinuz-*|tail -1) $INSTALL_TARGET/tftpboot/ogclient/ogvmlinuz
|
||||
ln -f $(ls $INSTALL_TARGET/tftpboot/ogclient/initrd.img-*|tail -1) $INSTALL_TARGET/tftpboot/ogclient/oginitrd.img
|
||||
|
||||
# Establecer los permisos.
|
||||
chmod -R 755 $INSTALL_TARGET/tftpboot/ogclient
|
||||
chown -R :$OPENGNSYS_CLIENT_USER $INSTALL_TARGET/tftpboot/ogclient
|
||||
|
@ -1324,8 +1326,8 @@ if [ $? -ne 0 ]; then
|
|||
errorAndLog "Error creating client structure"
|
||||
fi
|
||||
|
||||
# Crear la estructura del cliente de OpenGnSys 1.0
|
||||
openGnsysClientCreate
|
||||
# Crear la estructura del cliente de OpenGnSys
|
||||
clientCreate
|
||||
if [ $? -ne 0 ]; then
|
||||
errorAndLog "Error creating client"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue