source: client/shared/etc/preinit/mountrepo.sh @ 08a0d11

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 08a0d11 was d343849, checked in by ramon <ramongomez@…>, 14 years ago

Rama version1.0: Modificado proceso de arranque de cliente para montar repositorio en escritura para el modo administrador.
Close #334.

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

  • Property mode set to 100755
File size: 693 bytes
Line 
1#!/bin/bash
2#/**
3#@file    mountrepo.sh
4#@brief   Script para montar el repositorio de datos remoto.
5#@warning License: GNU GPLv3+
6#@version 1.0
7#@author  Ramon Gomez, ETSII Universidad de Sevilla
8#@date    2011-03-17
9#*/
10
11OGIMG=${OGIMG:-/opt/opengnsys/images}
12
13# TODO Revisar proceso de arranque para no montar 2 veces el repositorio.
14if [ $ogactiveadmin == "true" ]; then
15        export boot=admin
16        umount $OGIMG 2>/dev/null
17
18        protocol=${potocol:-"smb"}
19        printf "$MSG_MOUNTREPO\n" "$protocol" "$boot"
20        case "$protocol" in
21                nfs)    mount.nfs ${ROOTSERVER}:$OGIMG $OGIMG -o rw,nolock ;;
22                smb)    mount.cifs //${ROOTSERVER}/ogimages $OGIMG -o rw,serverino,acl,username=opengnsys,password=og ;;
23        esac
24fi
25
Note: See TracBrowser for help on using the repository browser.