Changeset 2451 for home-linker


Ignore:
Timestamp:
Sep 16, 2016, 1:58:56 PM (3 years ago)
Author:
daduve
Message:

wip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • home-linker/trunk/fuentes/home-linker.install/usr/bin/home-linker

    r2442 r2451  
    11#!/bin/sh
    22set -x
     3
     4LOG="/tmp/home_linker.log"
     5echo "" > "$LOG"
    36
    47trim() {
     
    196199if [ -d "/net/server-sync/home/$GRP_USER/$HL_USER/" ]; then
    197200    # other machines in aula
     201    echo "OTHER MACHINES IN AULA" >> "$LOG"
    198202    [ "${DESKTOP_LOCALE}" = "" ] || mount --bind /net/server-sync/home/$GRP_USER/$HL_USER/Desktop $HL_HOME/${DESKTOP_LOCALE} || true
    199203    [ "${DOCUMENTS_LOCALE}" = "" ] || mount --bind /net/server-sync/home/$GRP_USER/$HL_USER/Documents $HL_HOME/${DOCUMENTS_LOCALE} || true
     
    208212elif [ -d "/var/run/$HL_USER/home" ]; then
    209213    #Fat clients
     214    echo "FATCLIENTS IN AULA" >> "$LOG"
    210215    [ "${DESKTOP_LOCALE}" = "" ] || mount --bind /run/$HL_USER/home/$GRP_USER/$HL_USER/Desktop $HL_HOME/${DESKTOP_LOCALE} || true
    211216    [ "${DOCUMENTS_LOCALE}" = "" ] || mount --bind /run/$HL_USER/home/$GRP_USER/$HL_USER/Documents $HLHOME/${DOCUMENTS_LOCALE} || true
     
    238243
    239244date >> /tmp/home_linker.log
     245echo "" >> "$LOG"
     246echo "Las variables a tener en cuenta son:" >> "$LOG"
     247echo "         \$HL_USER -> $HL_USER" >> "$LOG"
     248echo "         \$HL_HOME -> $HL_HOME" >> "$LOG"
     249echo "         \$DESKTOP_LOCALE -> $DESKTOP_LOCALE" >> "$LOG"
     250echo "" >> "$LOG"
    240251echo "El idioma es $AUX_LANG" >> /tmp/home_linker.log
    241252echo "" >> /tmp/home_linker.log
Note: See TracChangeset for help on using the changeset viewer.