Rev | Line | |
---|
[de87b1a] | 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 | |
---|
| 11 | OGIMG=${OGIMG:-/opt/opengnsys/images} |
---|
| 12 | |
---|
| 13 | # TODO Revisar proceso de arranque para no montar 2 veces el repositorio. |
---|
| 14 | if [ $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 ;; |
---|
[d343849] | 22 | smb) mount.cifs //${ROOTSERVER}/ogimages $OGIMG -o rw,serverino,acl,username=opengnsys,password=og ;; |
---|
[de87b1a] | 23 | esac |
---|
| 24 | fi |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.