diff options
Diffstat (limited to 'client/shared/etc/preinit/mountrepo.sh')
-rwxr-xr-x | client/shared/etc/preinit/mountrepo.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/shared/etc/preinit/mountrepo.sh b/client/shared/etc/preinit/mountrepo.sh index 5c20499a..9b0aebaa 100755 --- a/client/shared/etc/preinit/mountrepo.sh +++ b/client/shared/etc/preinit/mountrepo.sh @@ -13,12 +13,12 @@ ROOTREPO=${ROOTREPO:-"$ROOTSERVER"} # TODO Revisar proceso de arranque para no montar 2 veces el repositorio. if [ $ogactiveadmin == "true" ]; then - export boot=admin + export boot=admin # ATENCIÓN: siempre en modo "admin". umount $OGIMG 2>/dev/null - protocol=${potocol:-"smb"} + protocol=${ogprotocol:-"smb"} printf "$MSG_MOUNTREPO\n" "$protocol" "$boot" - case "$protocol" in + case "$ogprotocol" in nfs) mount.nfs ${ROOTREPO}:$OGIMG $OGIMG -o rw,nolock ;; smb) PASS=$(grep "^[ ]*\(export \)\?OPTIONS=" /scripts/ogfunctions 2>&1 | \ sed 's/\(.*\)pass=\(\w*\)\(.*\)/\2/') |