From 16919efaa7abc641db49592795a6476bd36ac988 Mon Sep 17 00:00:00 2001 From: ramon Date: Mon, 28 Mar 2011 12:24:04 +0000 Subject: Version 1.0: Creación de imágenes desde la consola en cliente no administrador. * Corrección en funciones {{{ogGetRepoIp}}} y {{{ogGetServerIp}}}. * Corrección de errata en script de interfaz web para cambiar modo de montaje del repositorio. * Modificación de permisos de instalación. Modificado #291. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.0@1642 a21b9725-9963-47de-94b9-378ad31fedc9 --- client/engine/Net.lib | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'client/engine/Net.lib') diff --git a/client/engine/Net.lib b/client/engine/Net.lib index f1f1422c..6ac5a94a 100755 --- a/client/engine/Net.lib +++ b/client/engine/Net.lib @@ -112,14 +112,12 @@ echo ${MAC%% *} function ogGetRepoIp () { # Obtener direcciones IP, segun el protocolo de montaje -case $ogprotocol in - nfs) - [ -n "$OGIMG" ] && mount | grep " $OGIMG .* nfs " | cut -f1 -d: - ;; - smb) - [ -n "$OGIMG" ] && mount | grep ogimages | awk -F"addr=" '{print $2}' | cut -f1 -d"," - ;; -esac +if [ -n "$OGIMG" ]; then + case "$ogprotocol" in + nfs) mount | grep " on $OGIMG " | cut -f1 -d: ;; + smb) mount | grep " on $OGIMG " | cut -f3 -d/ ;; + esac +fi } @@ -138,14 +136,11 @@ esac function ogGetServerIp () { # Obtener direcciones IP. -case $ogprotocol in - nfs) - [ -n "$OPENGNSYS" ] && mount | grep " $OPENGNSYS .* nfs " | cut -f1 -d: - ;; - smb) - [ -n "$OGIMG" ] && mount | grep ogclient | awk -F"addr=" '{print $2}' | cut -f1 -d"," - ;; -esac +if [ -n "$PENGNSYS" ]; then + case "$ogprotocol" in + nfs) mount | grep " on $OPENGNSYS " | cut -f1 -d: ;; + smb) mount | grep " on $OPENGNSYS " | cut -f3 -d/ ;; + esac +fi } - -- cgit v1.2.3-18-g5258