lilalo

changeset 136:244825e244de

Запись начинается не автоматически, а по команде l3script

Для того чтобы начать запись в журнал
нужно дать команду l3script
Завершение записи --- команда exit
author igor@chub.in
date Thu Jul 17 11:20:58 2008 +0300 (2008-07-17)
parents 31ebdfe9797d
children 576a546271c6
files install l3bashrc
line diff
     1.1 --- a/install	Thu Jul 10 01:52:40 2008 +0300
     1.2 +++ b/install	Thu Jul 17 11:20:58 2008 +0300
     1.3 @@ -95,6 +95,7 @@
     1.4          cp l3config.pm /etc/lilalo/
     1.5          cp l3-agent /usr/local/bin
     1.6          cp l3-config /usr/local/bin
     1.7 +        ln -s `which bash` /usr/local/bin/l3script
     1.8          chmod 755 /usr/local/bin/l3-{agent,config}
     1.9          cp l3bashrc ${user_home}/${lilalo_home}
    1.10          cp l3prompt ${user_home}/${lilalo_home}
    1.11 @@ -113,7 +114,7 @@
    1.12      do
    1.13          user_home=`get_user_home "$user"`
    1.14          grep -q lilalo ${user_home}/.bashrc 2> /dev/null\
    1.15 -        || echo ". ${user_home}/.lilalo/l3bashrc && _l3_start" >> ${user_home}/.bashrc; chown -R ${user} ${user_home}/.bashrc
    1.16 +        || echo "[ $0 == l3script ] && . ${user_home}/.lilalo/l3bashrc && _l3_start" >> ${user_home}/.bashrc; chown -R ${user} ${user_home}/.bashrc
    1.17      done
    1.18  }
    1.19  
     2.1 --- a/l3bashrc	Thu Jul 10 01:52:40 2008 +0300
     2.2 +++ b/l3bashrc	Thu Jul 17 11:20:58 2008 +0300
     2.3 @@ -96,7 +96,7 @@
     2.4      flush="-f"                          #linux
     2.5      [ -n "$bsd" ] && flush="-t 0"       #freebsd
     2.6      export L3_PARENT_TTY=`/usr/bin/tty`
     2.7 -    exec script $flush -q $L3_HOME/${L3_SESSION_ID}.script
     2.8 +    exec script $flush -c $0 -q $L3_HOME/${L3_SESSION_ID}.script
     2.9  }
    2.10  
    2.11  # ===================== STAGE 2 ============================