lilalo

diff install @ 136:244825e244de

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

Для того чтобы начать запись в журнал
нужно дать команду l3script
Завершение записи --- команда exit
author igor@chub.in
date Thu Jul 17 11:20:58 2008 +0300 (2008-07-17)
parents b1685388f821
children 576a546271c6
line diff
     1.1 --- a/install	Fri Jul 04 10:46:41 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